File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed
homeassistant/components/esphome Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 3131 ConfigFlow ,
3232 ConfigFlowResult ,
3333 FlowType ,
34- OptionsFlow ,
34+ OptionsFlowWithReload ,
3535)
3636from homeassistant .const import CONF_HOST , CONF_PASSWORD , CONF_PORT
3737from homeassistant .core import callback
@@ -918,7 +918,7 @@ def async_get_options_flow(
918918 return OptionsFlowHandler ()
919919
920920
921- class OptionsFlowHandler (OptionsFlow ):
921+ class OptionsFlowHandler (OptionsFlowWithReload ):
922922 """Handle a option flow for esphome."""
923923
924924 async def async_step_init (
Original file line number Diff line number Diff line change @@ -442,14 +442,6 @@ async def async_cleanup(self) -> None:
442442 # save delay has passed.
443443 await self .store .async_save (self ._pending_storage ())
444444
445- async def async_update_listener (
446- self , hass : HomeAssistant , entry : ESPHomeConfigEntry
447- ) -> None :
448- """Handle options update."""
449- if self .original_options == entry .options :
450- return
451- hass .async_create_task (hass .config_entries .async_reload (entry .entry_id ))
452-
453445 @callback
454446 def async_on_disconnect (self ) -> None :
455447 """Call when the entry has been disconnected.
Original file line number Diff line number Diff line change @@ -983,10 +983,6 @@ async def async_start(self) -> None:
983983
984984 await reconnect_logic .start ()
985985
986- entry .async_on_unload (
987- entry .add_update_listener (entry_data .async_update_listener )
988- )
989-
990986
991987@callback
992988def _async_setup_device_registry (
You can’t perform that action at this time.
0 commit comments