Please forward to maintainer.
Jewish Calendar Integration produces this and other errors as it seems to not be finding the maths Sin/Cos/Tan etc routines from Python. I’m running the latest version 2021.6.3 on a PI4 using HA OS. This is the first error but it occurs several times for each different time / location based calculation. I’m UK based with config:
jewish_calendar:
language: english
diaspora: true
candle_lighting_minutes_before_sunset: 18
havdalah_minutes_after_sunset: 50
lattitude: 53.4***** - 5 digits removed
longitude: -2.2*****
=====Log Output ===========================
Logger: homeassistant.helpers.entity
Source: components/jewish_calendar/sensor.py:184
First occurred: 2:43:37 PM (13 occurrences)
Last logged: 2:49:37 PM
Update for sensor.jewish_calendar_upcoming_havdalah fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 350, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 558, in async_device_update
raise exc
File "/usr/src/homeassistant/homeassistant/components/jewish_calendar/sensor.py", line 100, in async_update
self._state = self.get_state(daytime_date, after_shkia_date, after_tzais_date)
File "/usr/src/homeassistant/homeassistant/components/jewish_calendar/sensor.py", line 184, in get_state
return times.havdalah
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 186, in havdalah
return self._havdalah_datetime
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 160, in _havdalah_datetime
return self.zmanim["three_stars"]
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 130, in zmanim
for key, value in self.utc_zmanim.items()
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 122, in utc_zmanim
for key, value in self.get_utc_sun_time_full().items()
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 313, in get_utc_sun_time_full
first_light = self._get_utc_time_of_transit(106.1, True)
File "/usr/local/lib/python3.8/site-packages/hdate/zmanim.py", line 295, in _get_utc_time_of_transit
return self._datetime_to_minutes_offest(astral.sun.time_of_transit(
File "/usr/local/lib/python3.8/site-packages/astral/sun.py", line 343, in time_of_transit
hourangle = hour_angle(
File "/usr/local/lib/python3.8/site-packages/astral/sun.py", line 243, in hour_angle
HA = acos(h)
ValueError: math domain error