updated rfxtrx lib

This commit is contained in:
Daniel committed 2016-02-11 14:15:51 +01:00
1 parent cdf0e80773
commit f938134069
4 files changed
+7 -10

No files matched your search

+2 -2
View File
@@ -49,8 +49,8 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
def switch_update(event):
""" Callback for sensor updates from the RFXtrx gateway. """
if not isinstance(event.device, rfxtrxmod.SwitchDevice) or \
isinstance(event.device, rfxtrxmod.LightDevice):
if not isinstance(event.device, rfxtrxmod.LightingDevice) or \
event.device.known_to_be_dimmable:
return
# Add entity if not exist and the automatic_add is True