ZigBee: Ensure correct entity types are used for each component.
This commit is contained in:
1 parent
241a768983
commit
c17a4fca80
5 files changed
+48
-13
No files matched your search
@@ -60,7 +60,8 @@ class ZigBeeTemperatureSensor(Entity):
|
||||
def update(self, *args):
|
||||
self._temp = zigbee.DEVICE.get_temperature(self._config.address)
|
||||
|
||||
# This must be below the ZigBeeTemperatureSensor which it references.
|
||||
|
||||
# This must be below the classes to which it refers.
|
||||
TYPE_CLASSES = {
|
||||
"temperature": (ZigBeeTemperatureSensor, zigbee.ZigBeeConfig),
|
||||
"analog": (zigbee.ZigBeeAnalogIn, zigbee.ZigBeeAnalogInConfig)
|
||||
|
||||
Reference in new issue
Block a user