Use device class translations for Coolmaster (#95182)

This commit is contained in:
Joost Lekkerkerker 2023-06-25 13:10:37 +02:00 committed by GitHub
parent dffe468ceb
commit f84887d5f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 11 deletions

View file

@ -53,6 +53,8 @@ async def async_setup_entry(
class CoolmasterClimate(CoolmasterEntity, ClimateEntity):
"""Representation of a coolmaster climate device."""
_attr_name = None
def __init__(self, coordinator, unit_id, info, supported_modes):
"""Initialize the climate device."""
super().__init__(coordinator, unit_id, info)
@ -63,11 +65,6 @@ class CoolmasterClimate(CoolmasterEntity, ClimateEntity):
"""Return unique ID for this device."""
return self._unit_id
@property
def name(self):
"""Return the name of the climate device."""
return self.unique_id
@property
def supported_features(self) -> ClimateEntityFeature:
"""Return the list of supported features."""