File tree 1 file changed +5
-5
lines changed
homeassistant/components/jewish_calendar
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -251,18 +251,18 @@ def __init__(
251
251
elif description .key == "holiday" :
252
252
self ._attr_options = HolidayDatabase (self .data .diaspora ).get_all_names ()
253
253
254
+ async def async_added_to_hass (self ) -> None :
255
+ """Call when entity is added to hass."""
256
+ await super ().async_added_to_hass ()
257
+ await self .async_update_data ()
258
+
254
259
@property
255
260
def native_value (self ) -> str | int | dt .datetime | None :
256
261
"""Return the state of the sensor."""
257
262
if self .data .results is None :
258
263
return None
259
264
return self .entity_description .value_fn (self .data .results )
260
265
261
- async def async_added_to_hass (self ) -> None :
262
- """Call when entity is added to hass."""
263
- await super ().async_added_to_hass ()
264
- await self .async_update_data ()
265
-
266
266
@property
267
267
def extra_state_attributes (self ) -> dict [str , str ]:
268
268
"""Return the state attributes."""
You can’t perform that action at this time.
0 commit comments