Use DeviceInfo in tado (#58603)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
6cfa5b2a28
commit
e64bc67bec
1 changed files with 7 additions and 7 deletions
|
@ -42,14 +42,14 @@ class TadoHomeEntity(Entity):
|
||||||
self.home_id = tado.home_id
|
self.home_id = tado.home_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_info(self):
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return the device_info of the device."""
|
"""Return the device_info of the device."""
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self.home_id)},
|
identifiers={(DOMAIN, self.home_id)},
|
||||||
"name": self.home_name,
|
manufacturer=DEFAULT_NAME,
|
||||||
"manufacturer": DEFAULT_NAME,
|
model=TADO_HOME,
|
||||||
"model": TADO_HOME,
|
name=self.home_name,
|
||||||
}
|
)
|
||||||
|
|
||||||
|
|
||||||
class TadoZoneEntity(Entity):
|
class TadoZoneEntity(Entity):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue