Add entity translations to Tado (#96226)

This commit is contained in:
Joost Lekkerkerker 2023-07-23 14:32:25 +02:00 committed by GitHub
parent 995c4d8ac1
commit 26152adb23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 36 deletions

View file

@ -218,6 +218,7 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
"""Representation of a Tado climate entity."""
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_name = None
def __init__(
self,
@ -244,7 +245,6 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
self.zone_type = zone_type
self._attr_unique_id = f"{zone_type} {zone_id} {tado.home_id}"
self._attr_name = zone_name
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
self._attr_translation_key = DOMAIN