mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
bugfix: is_on is a property (#4889)
This commit is contained in:
committed by
Paulus Schoutsen
parent
dc551b825f
commit
570cfc60c5
@@ -28,7 +28,7 @@ class TelldusLiveSwitch(TelldusLiveEntity, ToggleEntity):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return true if switch is on."""
|
"""Return true if switch is on."""
|
||||||
return self.device.is_on()
|
return self.device.is_on
|
||||||
|
|
||||||
def turn_on(self, **kwargs):
|
def turn_on(self, **kwargs):
|
||||||
"""Turn the switch on."""
|
"""Turn the switch on."""
|
||||||
|
Reference in New Issue
Block a user