mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix connection validation during import for dsmr integration (#40548)
* Close transport when equipment identifier is received * Minor fix
This commit is contained in:
parent
82c137d69b
commit
6bd72c3ff5
@ -48,9 +48,9 @@ class DSMRConnection:
|
|||||||
"""Test if we can validate connection with the device."""
|
"""Test if we can validate connection with the device."""
|
||||||
|
|
||||||
def update_telegram(telegram):
|
def update_telegram(telegram):
|
||||||
self._telegram = telegram
|
if obis_ref.EQUIPMENT_IDENTIFIER in telegram:
|
||||||
|
self._telegram = telegram
|
||||||
transport.close()
|
transport.close()
|
||||||
|
|
||||||
if self._host is None:
|
if self._host is None:
|
||||||
reader_factory = partial(
|
reader_factory = partial(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user