Skip to content

Commit

Permalink
Fix async callback. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked authored May 2, 2024
1 parent d278468 commit fc87266
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.7.0b8:
fix async callback issue
0.7.0a7:
fix upgrade issues
fix out of correct loop message
Expand Down
2 changes: 1 addition & 1 deletion custom_components/momentary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from .cfg import BlendedCfg


__version__ = "0.7.0a7"
__version__ = "0.7.0b8"

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/momentary/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/twrecked/hass-momentary/issues",
"requirements": [],
"version": "0.7.0a7"
"version": "0.7.0b8"
}
2 changes: 1 addition & 1 deletion custom_components/momentary/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _start_activity(self, new_state):

# Make sure system gets updated.
self._update_attributes()
self.async_schedule_update_ha_state()
self.schedule_update_ha_state()

def turn_on(self, **kwargs):
self._start_activity(True)
Expand Down

0 comments on commit fc87266

Please sign in to comment.