mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
ZigBee: Ensure correct entity types are used for each component.
This commit is contained in:
@@ -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