Fix connection validation during import for dsmr integration (#40548)
* Close transport when equipment identifier is received * Minor fix
This commit is contained in:
1 parent
6afa197586
commit
0856c7292c
1 file changed
+3
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user