Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix empty TOPIC_BASE issue if the value of the TOPIC_BASE is empty then we need to remove "~" from the topic value if it exists. by doing `if base:` on line 239 the condition will be false if the value is empty so the '~' will not be stripped from the topic value. I simply removed the `if base:` line and added `if TOPIC_BASE in payload:` * Update homeassistant/components/mqtt/discovery.py Co-Authored-By: engrbm87 <engrbm87@gmail.com>
- Loading branch information