Skip to content

Commit

Permalink
Update config_flow.py
Browse files Browse the repository at this point in the history
Am înlocuit self.config_entry cu atribut privat _config_entry în OptionsFlow pentru a respecta noile standarde Home Assistant și a evita utilizarea metodei deprecated.
  • Loading branch information
cnecrea authored Jan 28, 2025
1 parent 5d8296d commit d11fa0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/infpro/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ def async_get_options_flow(config_entry):
class InfProOptionsFlow(config_entries.OptionsFlow):
"""Flux de opțiuni pentru integrarea INFP."""

def __init__(self, config_entry):
def __init__(self, config_entry: config_entries.ConfigEntry):
"""Inițializează fluxul de opțiuni."""
self.config_entry = config_entry
super().__init__()
self._config_entry = config_entry

async def async_step_init(self, user_input=None):
"""Pasul inițial pentru fluxul de opțiuni."""
Expand Down

0 comments on commit d11fa0c

Please sign in to comment.