mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Improve type hints in rachio switch (#90050)
This commit is contained in:
parent
1895c82ffc
commit
c507ca1e66
@ -506,7 +506,7 @@ class RachioSchedule(RachioSwitch):
|
|||||||
return "mdi:water" if self.schedule_is_enabled else "mdi:water-off"
|
return "mdi:water" if self.schedule_is_enabled else "mdi:water-off"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def extra_state_attributes(self) -> dict:
|
def extra_state_attributes(self) -> dict[str, Any]:
|
||||||
"""Return the optional state attributes."""
|
"""Return the optional state attributes."""
|
||||||
return {
|
return {
|
||||||
ATTR_SCHEDULE_SUMMARY: self._summary,
|
ATTR_SCHEDULE_SUMMARY: self._summary,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user