ZigBee: Ensure correct entity types are used for each component.
This commit is contained in:
parent
241a768983
commit
c17a4fca80
5 changed files with 48 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue