mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 04:05:20 +01:00
Return empty dictionary at first for attributes (#41348)
This commit is contained in:
@@ -113,10 +113,9 @@ class JewishCalendarSensor(Entity):
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
if self._type == "holiday":
|
||||
return self._holiday_attrs
|
||||
|
||||
return {}
|
||||
if self._type != "holiday":
|
||||
return {}
|
||||
return self._holiday_attrs
|
||||
|
||||
def get_state(self, daytime_date, after_shkia_date, after_tzais_date):
|
||||
"""For a given type of sensor, return the state."""
|
||||
|
||||
Reference in New Issue
Block a user