Use DeviceInfo in tado (#58603)
Co-authored-by: epenet <epenet@users.noreply.github.com>pull/58602/head^2
parent
6cfa5b2a28
commit
e64bc67bec
|
@ -42,14 +42,14 @@ class TadoHomeEntity(Entity):
|
|||
self.home_id = tado.home_id
|
||||
|
||||
@property
|
||||
def device_info(self):
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return the device_info of the device."""
|
||||
return {
|
||||
"identifiers": {(DOMAIN, self.home_id)},
|
||||
"name": self.home_name,
|
||||
"manufacturer": DEFAULT_NAME,
|
||||
"model": TADO_HOME,
|
||||
}
|
||||
return DeviceInfo(
|
||||
identifiers={(DOMAIN, self.home_id)},
|
||||
manufacturer=DEFAULT_NAME,
|
||||
model=TADO_HOME,
|
||||
name=self.home_name,
|
||||
)
|
||||
|
||||
|
||||
class TadoZoneEntity(Entity):
|
||||
|
|
Loading…
Reference in New Issue