Use device class translations for Coolmaster (#95182)
This commit is contained in:
parent
dffe468ceb
commit
f84887d5f8
6 changed files with 24 additions and 11 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue