Skip to content

Commit b8f9a30

Browse files
authored
device_state_attributes warnings 2021.12.0b (#414)
1 parent f92de9e commit b8f9a30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/google_home/sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def state(self) -> str | None:
126126
return device.ip_address if device else None
127127

128128
@property
129-
def device_state_attributes(self) -> DeviceAttributes:
129+
def extra_state_attributes(self) -> DeviceAttributes:
130130
"""Return the state attributes."""
131131
device = self.get_device()
132132
attributes: DeviceAttributes = {
@@ -184,7 +184,7 @@ def state(self) -> str | None:
184184
)
185185

186186
@property
187-
def device_state_attributes(self) -> AlarmsAttributes:
187+
def extra_state_attributes(self) -> AlarmsAttributes:
188188
"""Return the state attributes."""
189189
return {
190190
"next_alarm_status": self._get_next_alarm_status(),
@@ -264,7 +264,7 @@ def state(self) -> str | None:
264264
)
265265

266266
@property
267-
def device_state_attributes(self) -> TimersAttributes:
267+
def extra_state_attributes(self) -> TimersAttributes:
268268
"""Return the state attributes."""
269269
return {
270270
"next_timer_status": self._get_next_timer_status(),

0 commit comments

Comments
 (0)