From 79045f2da1694bb75a72385de0746426bd56eae9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 4 Sep 2019 09:23:56 -0700 Subject: [PATCH 1/2] Undo accidental Tuya change --- homeassistant/components/tuya/switch.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index a0d262aa085..9c021766637 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -26,12 +26,11 @@ class TuyaSwitch(TuyaDevice, SwitchDevice): """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.""" @@ -40,7 +39,3 @@ class TuyaSwitch(TuyaDevice, SwitchDevice): 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() From f23ab2af8c80a4c1a876e4ad7491d7e8b20760b9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 5 Sep 2019 22:10:37 -0700 Subject: [PATCH 2/2] Bumped version to 0.98.4 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 2a20917b3be..db6580727ea 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -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)