From 2a39f34aac4e1d0ad983299df924ccc61a31166f Mon Sep 17 00:00:00 2001 From: anotherjulien Date: Tue, 19 Oct 2021 20:07:36 +0200 Subject: [PATCH] Fix missing empty async_update for AUX sensors. --- custom_components/myhome/binary_sensor.py | 3 +++ custom_components/myhome/manifest.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/myhome/binary_sensor.py b/custom_components/myhome/binary_sensor.py index 5dff7d3..8971421 100644 --- a/custom_components/myhome/binary_sensor.py +++ b/custom_components/myhome/binary_sensor.py @@ -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) diff --git a/custom_components/myhome/manifest.json b/custom_components/myhome/manifest.json index 063a142..49d2e23 100644 --- a/custom_components/myhome/manifest.json +++ b/custom_components/myhome/manifest.json @@ -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",