mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix connection validation during import for dsmr integration (#40548)
* Close transport when equipment identifier is received * Minor fix
This commit is contained in:
@@ -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