Skip to content

Commit

Permalink
#1530: fix deprecation warning - config_entry should be set in base c…
Browse files Browse the repository at this point in the history
…lass
  • Loading branch information
folfy committed Jan 9, 2025
1 parent 9bcac87 commit ad27a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/better_thermostat/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def __init__(self):
self.trv_bundle = []
self.integration = None
self.i = 0
super().__init__()

@staticmethod
@callback
Expand Down Expand Up @@ -390,13 +391,12 @@ class OptionsFlowHandler(config_entries.OptionsFlow):

def __init__(self, config_entry: config_entries.ConfigEntry) -> None:
"""Initialize options flow."""
self.config_entry = config_entry
self.options = dict(config_entry.options)
self.i = 0
self.trv_bundle = []
self.device_name = ""
self._last_step = False
self.updated_config = {}
super().__init__()

async def async_step_init(self, user_input=None):
"""Manage the options."""
Expand Down

0 comments on commit ad27a85

Please sign in to comment.