Skip to content

Commit 0ec36d7

Browse files
committed
Fix for incorrect binary_sensor_channel_discovery
1 parent 92b33f7 commit 0ec36d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/edinplus/edinplus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ async def async_response_handler(self,response):
213213
config_entry_id=self._entry_id,
214214
identifiers={(DOMAIN, uuid)},
215215
)
216+
found_binary_sensor_channel = False
216217
for binary_sensor in self.binary_sensors:
217-
found_binary_sensor_channel = False
218218
if binary_sensor.channel == channel and binary_sensor._address == address:
219219
found_binary_sensor_channel = True
220220
LOGGER.info(f"[{self._hostname}] Found binary sensor corresponding to address {binary_sensor._address}, channel {binary_sensor.channel} in HA. Writing state {newstate_numeric > 0}")

custom_components/edinplus/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"iot_class": "local_push",
99
"issue_tracker": "https://github.com/sftgunner/edinplus-integration/issues",
1010
"requirements": [],
11-
"version": "0.6.9"
11+
"version": "0.6.10"
1212
}

0 commit comments

Comments
 (0)