#401 - Giving Neato a Voice in this house. Joanna, meet Neato.

This commit is contained in:
ccostan
2020-05-29 16:45:24 -04:00
parent 7c9517fafe
commit 2a7cab9e0d
7 changed files with 156 additions and 11 deletions

View File

@@ -198,11 +198,12 @@ async def async_remove_entry(hass, config_entry):
hacs.logger.info("Removing recuring tasks")
for task in hacs.recuring_tasks:
task()
hacs.logger.info("Removing sensor")
try:
await hass.config_entries.async_forward_entry_unload(config_entry, "sensor")
except ValueError:
pass
if config_entry.state == "loaded":
hacs.logger.info("Removing sensor")
try:
await hass.config_entries.async_forward_entry_unload(config_entry, "sensor")
except ValueError:
pass
hacs.logger.info("Removing sidepanel")
try:
hass.components.frontend.async_remove_panel("hacs")