Skip to content

Commit

Permalink
Merge pull request #26463 from home-assistant/rc
Browse files Browse the repository at this point in the history
0.98.4
  • Loading branch information
balloob authored Sep 6, 2019
2 parents e59eea3 + f23ab2a commit b870980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions homeassistant/components/tuya/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ def __init__(self, tuya):
"""Init Tuya switch device."""
super().__init__(tuya)
self.entity_id = ENTITY_ID_FORMAT.format(tuya.object_id())
self._is_on = False

@property
def is_on(self):
"""Return true if switch is on."""
return self._is_on
return self.tuya.state()

def turn_on(self, **kwargs):
"""Turn the switch on."""
Expand All @@ -40,7 +39,3 @@ def turn_on(self, **kwargs):
def turn_off(self, **kwargs):
"""Turn the device off."""
self.tuya.turn_off()

def update(self):
"""Update switch device."""
self._is_on = self.tuya.state()
2 changes: 1 addition & 1 deletion homeassistant/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Constants used by Home Assistant components."""
MAJOR_VERSION = 0
MINOR_VERSION = 98
PATCH_VERSION = "3"
PATCH_VERSION = "4"
__short_version__ = "{}.{}".format(MAJOR_VERSION, MINOR_VERSION)
__version__ = "{}.{}".format(__short_version__, PATCH_VERSION)
REQUIRED_PYTHON_VER = (3, 6, 0)
Expand Down

0 comments on commit b870980

Please sign in to comment.