Add devices to Tahoma (#14075)

This commit is contained in:
Thijs de Jong authored and Sebastian Muszynski committed 2018-04-25 07:09:45 +02:00
1 parent 0a0d34d394
commit 558b659f7c
3 files changed
+9

No files matched your search

@@ -46,6 +46,8 @@ class TahomaSensor(TahomaDevice, Entity):
"""Return the unit of measurement of this entity, if any."""
if self.tahoma_device.type == 'Temperature Sensor':
return None
elif self.tahoma_device.type == 'io:SomfyContactIOSystemSensor':
return None
elif self.tahoma_device.type == 'io:LightIOSystemSensor':
return 'lux'
elif self.tahoma_device.type == 'Humidity Sensor':
@@ -57,3 +59,6 @@ class TahomaSensor(TahomaDevice, Entity):
if self.tahoma_device.type == 'io:LightIOSystemSensor':
self.current_value = self.tahoma_device.active_states[
'core:LuminanceState']
if self.tahoma_device.type == 'io:SomfyContactIOSystemSensor':
self.current_value = self.tahoma_device.active_states[
'core:ContactState']