Add assumed_state for rfxtrx switch and light.

This commit is contained in:
John Arild Berentsen committed 2016-02-15 18:59:11 +01:00
1 parent bca3207e0c
commit f429a6c4ff
2 files changed
+11

No files matched your search

@@ -132,6 +132,11 @@ class RfxtrxSwitch(SwitchDevice):
""" True if light is on. """
return self._state
@property
def assumed_state(self):
"""Return True if unable to access real state of entity."""
return True
def turn_on(self, **kwargs):
""" Turn the device on. """
if self._event: