litinoveweedle / SmartIR

⏻ Control Home Assistant climate, media and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
MIT License
45 stars 12 forks source link

Update wiped out all custom files #11

Closed agneevX closed 1 month ago

agneevX commented 1 month ago

Hello,

After updating to 1.17.13, all of my json files that I painstakingly created over the years got deleted.

There is nothing in /custom_codes.

tayanov commented 1 month ago

+1 delete my personal code from "codes" folder too

litinoveweedle commented 1 month ago

Hello sorry for the deleting files, although it is not completely my fault ;-) But I should probably put BIGGER warning into Manifest. I hope that you have backup.

Delete of the custom codes files is not caused by the integration, but by the HACS as the directory for custom codes changed (and this is noted in the changes manifest and also in the documentation) Only custom_codes directory is now persistent, so it is not wiped out and replaced by HACS during integration update. While original codes directory is being updated by HACS and therefore allows for new codes to be automatically delivered during integration update. It is documented here. So sorry to say, but this is not a bug, but rather intended functionality.