1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00

Add configuration url for Tado (#70715)

This commit is contained in:
avee87 2022-04-26 23:16:39 +01:00 committed by GitHub
parent 9fdec407e0
commit 53135267f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ class TadoDeviceEntity(Entity):
def device_info(self) -> DeviceInfo:
"""Return the device_info of the device."""
return DeviceInfo(
configuration_url=f"https://app.tado.com/en/main/settings/rooms-and-devices/device/{self.device_name}",
identifiers={(DOMAIN, self.device_id)},
name=self.device_name,
manufacturer=DEFAULT_NAME,
@ -45,6 +46,7 @@ class TadoHomeEntity(Entity):
def device_info(self) -> DeviceInfo:
"""Return the device_info of the device."""
return DeviceInfo(
configuration_url="https://app.tado.com",
identifiers={(DOMAIN, self.home_id)},
manufacturer=DEFAULT_NAME,
model=TADO_HOME,
@ -66,6 +68,7 @@ class TadoZoneEntity(Entity):
def device_info(self) -> DeviceInfo:
"""Return the device_info of the device."""
return DeviceInfo(
configuration_url=f"https://app.tado.com/en/main/home/zoneV2/{self.zone_id}",
identifiers={(DOMAIN, self._device_zone_id)},
name=self.zone_name,
manufacturer=DEFAULT_NAME,