Use DeviceInfo in tado (#58603)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/58602/head^2
epenet 2021-10-28 18:20:09 +02:00 committed by GitHub
parent 6cfa5b2a28
commit e64bc67bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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):