Improve Smappee integration (#37087)
This commit is contained in:
1 parent
fe5bf96e5d
commit
680f8f8d5a
7 files changed
+41
-35
No files matched your search
@@ -139,12 +139,6 @@ class SmappeeAppliance(BinarySensorEntity):
|
||||
}
|
||||
return icon_mapping.get(self._appliance_type)
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
# Only lights can be mapped onto the generic list of binary sensors
|
||||
return "light" if self._appliance_type == "Lights" else "power"
|
||||
|
||||
@property
|
||||
def unique_id(self,):
|
||||
"""Return the unique ID for this binary sensor."""
|
||||
|
||||
Reference in new issue
Block a user