ZigBee: Ensure correct entity types are used for each component.

This commit is contained in:
Flyte 2016-01-29 12:00:53 +00:00
parent 241a768983
commit c17a4fca80
5 changed files with 48 additions and 13 deletions

View file

@ -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)