wuwentao / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
95 stars 5 forks source link

fix: migrate identifier #158

Closed chemelli74 closed 1 week ago

chemelli74 commented 1 week ago

PR Description

Fixing device registry because of a faulty value: device id was wrongly stored as a int.

Old: "identifiers":[["midea_ac_lan",146235046630005]]

New: "identifiers":[["midea_ac_lan","146235046630005"]]

Necroneco commented 1 week ago

Have you tested it? I didn't trigger the migration process. and duplicate devices appear

(I'm on HA 2023.8)

Necroneco commented 1 week ago

Hello, I made some modifications and have tested on 2023.8 and 2024.6, please take a look and feel free to make any changes.

wuwentao commented 1 week ago

test with latest update, it should works well with HA 2024.6.3 and migrate from version 1.1 to 2.1 pass.