Added rfxtrx rollershutter (#2030)
* Added rfxtrx rollershutter * Updated mock command with real one * Corrected test string
This commit is contained in:
1 parent
26d3c3b0d6
commit
ca7415e935
7 files changed
+327
-4
No files matched your search
@@ -28,7 +28,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.LightingDevice) or \
|
||||
event.device.known_to_be_dimmable:
|
||||
event.device.known_to_be_dimmable or \
|
||||
event.device.known_to_be_rollershutter:
|
||||
return
|
||||
|
||||
new_device = rfxtrx.get_new_device(event, config, RfxtrxSwitch)
|
||||
|
||||
Reference in new issue
Block a user