-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing any network setting resets HA device/entity customization #24
Comments
My fault, sorry. Entities are removed from HASS when a value is set as topic (to avoid orphan MQTT retained messages) but even when the topic is not changed and only other MQTT options are changed that function is triggered with a value equal to the previous one. Line 237 in afe2a81
I cannot do it myself right now. I am on vacation with limited access to test changes :( |
I have added the suggested fix (not committed yet). Can you check if it works like this? |
I updated the FW and clicked "Save" without actually changing any setting - the HA entities stayed safely in their customized form. |
ok I'll prepare a release then |
Changing anything in the
/mqttconfig
screen results in all device/entity customizations (friendly name, icon, entity slug) being reset because the HA discovery data is removed even when the HA topic was not changed at all. This is because all config keys are always present when saving (also ensuring a restart on every save becauseconfigChanged
is always true).The text was updated successfully, but these errors were encountered: