Skip to content

Commit 3f395e7

Browse files
committed
fix: remove configured device if removed from configuration
1 parent 8e436cf commit 3f395e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intg-androidtv/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def on_device_removed(device: config.AtvDevice | None) -> None:
333333
else:
334334
if device.id in _configured_android_tvs:
335335
_LOG.debug("Disconnecting from removed ATV %s", device.id)
336-
atv = _configured_android_tvs[device.id]
336+
atv = _configured_android_tvs.pop(device.id)
337337
atv.disconnect()
338338
atv.events.remove_all_listeners()
339339
# TODO #14 map entity IDs from device identifier

0 commit comments

Comments
 (0)