jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
196 stars 48 forks source link

Update existing devices when driver changes #71

Open jason0x43 opened 3 years ago

jason0x43 commented 3 years ago

When a device reports new capabilities or its label changes, it may be classified differently by the integration (e.g., as a light vs a switch). Possibly the integration should look for existing entities during initialization and remove entities that are no longer relevant, or update those entities (when it makes sense) rather than creating entirely new ones.

methylmercury commented 3 years ago

I have sifted through the device_registry and entity_registry and removed as many of the bad entries as I could fine. Today, they're all back, so the integration is continually bringing them back over.

github-actions[bot] commented 3 years ago

Stale issue message