Fix yeelight state update (#22373)
This commit is contained in:
1 parent
3cca3c37f0
commit
2cebf9ef71
2 files changed
+3
-6
No files matched your search
@@ -259,8 +259,6 @@ class YeelightDevice:
|
||||
_LOGGER.error("Unable to turn the bulb on: %s", ex)
|
||||
return
|
||||
|
||||
self.update()
|
||||
|
||||
def turn_off(self, duration=DEFAULT_TRANSITION):
|
||||
"""Turn off device."""
|
||||
import yeelight
|
||||
@@ -271,8 +269,6 @@ class YeelightDevice:
|
||||
_LOGGER.error("Unable to turn the bulb on: %s", ex)
|
||||
return
|
||||
|
||||
self.update()
|
||||
|
||||
def update(self):
|
||||
"""Read new properties from the device."""
|
||||
if not self.bulb:
|
||||
|
||||
Reference in new issue
Block a user