#Home Assistant Jewish Calendar ValueError issue has returned.......weary

1 messages · Page 1 of 1 (latest)

lone sundial
#

Home Assistant Jewish Calendar : ValueError issue has returned.......😩 . As before the problem is with people like me who live too far North/South causing the calulation of the duration of Shabbat to crash in the Astral library used by the integration. This is seemingly because the angle the sun moves through is possibly greater than 180 degrees causing acos() to fault.

#

Whhops, actually "math domain error" . pasting the output log but probably with horrible syntax:File "/usr/src/homeassistant/homeassistant/components/jewish_calendar/sensor.py", line 280, in get_state
return times.havdalah
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 188, in havdalah
return self._havdalah_datetime
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 162, in _havdalah_datetime
return self.zmanim["three_stars"]
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 132, in zmanim
for key, value in self.utc_zmanim.items()
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 124, in utc_zmanim
for key, value in self.get_utc_sun_time_full().items()
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 353, in get_utc_sun_time_full
first_light = self._get_utc_time_of_transit(106.1, True)
File "/usr/local/lib/python3.9/site-packages/hdate/zmanim.py", line 334, in _get_utc_time_of_transit
astral.sun.time_of_transit(
File "/usr/local/lib/python3.9/site-packages/astral/sun.py", line 343, in time_of_transit
hourangle = hour_angle(
File "/usr/local/lib/python3.9/site-packages/astral/sun.py", line 243, in hour_angle
HA = acos(h)
ValueError: math domain error