Skip to content

Commit

Permalink
Merge pull request #373 from jwillemsen/jwi-depwarning
Browse files Browse the repository at this point in the history
Fixed deprecation warning
  • Loading branch information
jwillemsen authored Dec 10, 2024
2 parents 6e5665c + c47205e commit 569844e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/daikin_onecta/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class OptionsFlowHandler(config_entries.OptionsFlow):

def __init__(self, config_entry):
"""Initialize HACS options flow."""
self.config_entry = config_entry
self.options = dict(config_entry.options)

async def async_step_init(self, user_input: dict[str, str] | None = None) -> FlowResult:
Expand Down Expand Up @@ -69,7 +68,7 @@ async def async_step_init(self, user_input: dict[str, str] | None = None) -> Flo

async def _update_options(self):
"""Update config entry options."""
return self.async_create_entry(title=self.config_entry.data.get("Hub "), data=self.options)
return self.async_create_entry(title="", data=self.options)


class FlowHandler(
Expand Down

0 comments on commit 569844e

Please sign in to comment.