forked from platypush/platypush
Extended humidity sensors detection for zigbee.mqtt
This commit is contained in:
parent
16c24d799d
commit
b6370b51da
1 changed files with 1 additions and 1 deletions
|
@ -1598,7 +1598,7 @@ class ZigbeeMqttPlugin(MqttPlugin): # lgtm [py/missing-call-to-init]
|
||||||
entity_type = VoltageSensor
|
entity_type = VoltageSensor
|
||||||
elif exposed.get('property', '').endswith('temperature'):
|
elif exposed.get('property', '').endswith('temperature'):
|
||||||
entity_type = TemperatureSensor
|
entity_type = TemperatureSensor
|
||||||
elif exposed.get('property', '').endswith('humidity'):
|
elif re.search(r'(humidity|moisture)$', exposed.get('property' '')):
|
||||||
entity_type = HumiditySensor
|
entity_type = HumiditySensor
|
||||||
elif exposed.get('type') == 'binary':
|
elif exposed.get('type') == 'binary':
|
||||||
entity_type = BinarySensor
|
entity_type = BinarySensor
|
||||||
|
|
Loading…
Reference in a new issue