@@ -207,7 +207,7 @@ def __init__(
207207 if description .key == "weekly_portion" :
208208 self ._attr_options = list (Parasha )
209209 elif description .key == "holiday" :
210- self ._attr_options = HolidayDatabase (self ._diaspora ).get_all_names ()
210+ self ._attr_options = HolidayDatabase (self .data . diaspora ).get_all_names ()
211211
212212 async def async_added_to_hass (self ) -> None :
213213 """Call when entity is added to hass."""
@@ -217,7 +217,7 @@ async def async_added_to_hass(self) -> None:
217217 async def async_update (self ) -> None :
218218 """Update the state of the sensor."""
219219 now = dt_util .now ()
220- _LOGGER .debug ("Now: %s Location: %r" , now , self ._location )
220+ _LOGGER .debug ("Now: %s Location: %r" , now , self .data . location )
221221
222222 today = now .date ()
223223 event_date = get_astral_event_date (self .hass , SUN_EVENT_SUNSET , today )
@@ -230,7 +230,7 @@ async def async_update(self) -> None:
230230
231231 _LOGGER .debug ("Now: %s Sunset: %s" , now , sunset )
232232
233- daytime_date = HDateInfo (today , diaspora = self ._diaspora )
233+ daytime_date = HDateInfo (today , diaspora = self .data . diaspora )
234234
235235 # The Jewish day starts after darkness (called "tzais") and finishes at
236236 # sunset ("shkia"). The time in between is a gray area
0 commit comments