Skip to content

Commit

Permalink
Correct error in device definition to merge sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
pcourbin committed Jan 4, 2025
1 parent 11cc84f commit 91c27bb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion custom_components/ecodevices_rt2/device_ecodevicesrt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def __init__(
self._ecort2_type = device_config.get(CONF_TYPE)
self._component = device_config.get(CONF_COMPONENT)
self._id = device_config.get(CONF_ID)

self._zone_id = device_config.get(CONF_ZONE_ID, "")
self._subpost_id = device_config.get(CONF_SUBPOST_ID, "")

Expand All @@ -60,3 +59,18 @@ def __init__(
"via_device": (DOMAIN, self.ecort2.host),
"configuration_url": self._configuration_url,
}

@property
def icon(self):
"""Icon to use in the frontend, if any."""
return self._icon

@property
def device_class(self):
"""Return the device class."""
return self._device_class

@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return self._unit_of_measurement

0 comments on commit 91c27bb

Please sign in to comment.