Change MQTT topics for Home Assistant 2023.8 update #106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As described in a recent blog post (PSA: MQTT Name changes in 2023.8), the way Home Assistant handles MQTT names will change.
It is no longer necessary to include the device name in the entity.
I removed the device name from the entities name. This makes the device page cleaner, as shown here:
![image](https://private-user-images.githubusercontent.com/21108660/258974535-420abd18-6ed1-4d91-bd3b-1d3639763876.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NDYxMzEsIm5iZiI6MTcxOTk0NTgzMSwicGF0aCI6Ii8yMTEwODY2MC8yNTg5NzQ1MzUtNDIwYWJkMTgtNmVkMS00ZDkxLWJkM2ItMWQzNjM5NzYzODc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDE4NDM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3MzQ5MDA1MDFkOTMzNjE5MTFiNWZhMGNhZDQ5MWU2ODA4MjAzNzM0MTBiNzZmNGM1ZmY1ZDFlY2M1NjJhOGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yRHlol0KCjBQvUEIsIXsgCKwTHqdxvDIsmg6ftWV9cw)
And the device name is added automatically to the entity:
![image](https://private-user-images.githubusercontent.com/21108660/258975136-1423462e-6621-4d94-9d2f-b6d425593be3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NDYxMzEsIm5iZiI6MTcxOTk0NTgzMSwicGF0aCI6Ii8yMTEwODY2MC8yNTg5NzUxMzYtMTQyMzQ2MmUtNjYyMS00ZDk0LTlkMmYtYjZkNDI1NTkzYmUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDE4NDM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5OWE1NWJhNDI3MWMxY2Q5ZDQwZjA3YTkwZWIyN2YzNzI4Y2U2MzgzMzgyYzgxNGM2ZmNiYjI3ODE3MTdlMzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GgiML0B-oFVitTWFfAQI9ytF4ENhrJe4Quqvng4Qx_U)