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.
This pull request fixes an issue where the RestoreOnDeactivate setting was not retained after a reboot. The
RestoreOnDeactivate
class now inherits fromRestoreEntity
to ensure that the setting is properly restored. Additionally, theasync_added_to_hass
method has been implemented to handle the entity being added and set the restore state based on the last known state.