Skip to content

Commit

Permalink
replace deprecated update_ha_state(), fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Feb 26, 2019
1 parent fc7ec8c commit e076e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/yeelight_bt/light/yeelight_bt.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _status_cb(self, _):
_LOGGER.debug("available: %s state: %s rgb: %s ct: %s",
self._available, self._state, self._rgb, self._ct)

self.update_ha_state()
self.schedule_update_ha_state()

def update(self):
# Note, update should only start fetching,
Expand Down

0 comments on commit e076e71

Please sign in to comment.