bugfix: is_on is a property (#4889)

pull/4881/merge
Erik Eriksson 2016-12-14 07:58:43 +01:00 committed by Paulus Schoutsen
parent dc551b825f
commit 570cfc60c5
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class TelldusLiveSwitch(TelldusLiveEntity, ToggleEntity):
@property
def is_on(self):
"""Return true if switch is on."""
return self.device.is_on()
return self.device.is_on
def turn_on(self, **kwargs):
"""Turn the switch on."""