Skip to content
Snippets Groups Projects
Unverified Commit e64bc67b authored by epenet's avatar epenet Committed by GitHub
Browse files

Use DeviceInfo in tado (#58603)

parent 6cfa5b2a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment