Skip to content

Commit

Permalink
Fix missing empty async_update for AUX sensors.
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherjulien committed Oct 19, 2021
1 parent 2e44c98 commit 2a39f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions custom_components/myhome/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ def __init__(
self._attr_is_on = False
self._attr_extra_state_attributes = {"Auxiliary channel": self._where}

async def async_update(self):
"""AUX sensors are read only and cannot be queried, no async_update implementation."""

def handle_event(self, message: OWNDryContactEvent):
"""Handle an event message."""
LOGGER.info(message.human_readable_log)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/myhome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "myhome",
"name": "MyHOME",
"version": "0.8.4",
"version": "0.8.5",
"config_flow": true,
"documentation": "https://github.com/anotherjulien/MyHOME",
"issue_tracker": "https://github.com/anotherjulien/MyHOME/issues",
Expand Down

0 comments on commit 2a39f34

Please sign in to comment.