mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +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."""
|
||||
|
||||
def update_telegram(telegram):
|
||||
self._telegram = telegram
|
||||
|
||||
transport.close()
|
||||
if obis_ref.EQUIPMENT_IDENTIFIER in telegram:
|
||||
self._telegram = telegram
|
||||
transport.close()
|
||||
|
||||
if self._host is None:
|
||||
reader_factory = partial(
|
||||
|
Loading…
x
Reference in New Issue
Block a user