dsmr: also migrate entries for devices with correct serial When the dsmr code could not find the serial_nr for the gas meter, it creates the gas meter device with the entry_id as identifier. But when there is a correct serial_nr, it will use that as identifier for the dsmr gas device. Now the migration code did not take this into account, so migration to the new name failed since it didn't look for the device with correct serial_nr. This commit fixes this and adds a test for this. |
||
---|---|---|
.. | ||
__init__.py | ||
config_flow.py | ||
const.py | ||
diagnostics.py | ||
icons.json | ||
manifest.json | ||
sensor.py | ||
strings.json |