gtdiehl / iotawatt_ha

IoTaWatt for Home Assistant
Apache License 2.0
16 stars 16 forks source link

Remove entity from HA when not found on device #20

Closed gtdiehl closed 3 years ago

gtdiehl commented 3 years ago

Fix #1

When removing or renaming a device KeyErrors are thrown because the entity is no longer available.

This code removes the entity from Home Assistant when a user removes/renames a sensor from the IoTaWatt web interface