Fix issue where an MQTT device is removed linked to two config entries (#120430)
* Fix issue where an MQTT device is removed linked to two config entries * Update homeassistant/components/mqtt/discovery.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update homeassistant/components/mqtt/debug_info.py Co-authored-by: J. Nick Koston <nick@koston.org> --------- Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
d3ceaef098
commit
e567f8f3d5
4 changed files with 8 additions and 5 deletions
|
@ -138,7 +138,7 @@ def remove_trigger_discovery_data(
|
|||
hass: HomeAssistant, discovery_hash: tuple[str, str]
|
||||
) -> None:
|
||||
"""Remove discovery data."""
|
||||
del hass.data[DATA_MQTT].debug_info_triggers[discovery_hash]
|
||||
hass.data[DATA_MQTT].debug_info_triggers.pop(discovery_hash, None)
|
||||
|
||||
|
||||
def _info_for_entity(hass: HomeAssistant, entity_id: str) -> dict[str, Any]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue