hugobloem / stateful_scenes

Stateful Scenes in Home Assistant (Home Kit scene compatible)
MIT License
52 stars 6 forks source link

fix: RestoreOnDeactivate setting retention #109

Closed hugobloem closed 2 months ago

hugobloem commented 2 months ago

This pull request fixes an issue where the RestoreOnDeactivate setting was not retained after a reboot. The RestoreOnDeactivate class now inherits from RestoreEntity to ensure that the setting is properly restored. Additionally, the async_added_to_hass method has been implemented to handle the entity being added and set the restore state based on the last known state.

hugobloem commented 2 months ago

Full credits go to @cheerpipe