Skip to content

Commit

Permalink
fix: Fixed updating cost tracker config
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Apr 21, 2024
1 parent c028b15 commit c934614
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/octopus_energy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,8 @@ async def async_step_target_rate(self, user_input):

async def async_step_cost_tracker(self, user_input):
"""Manage the options for the custom component."""
account_ids = get_account_ids(self.hass)
account_id = list(account_ids.keys())[0]

config = merge_cost_tracker_config(self._entry.data, self._entry.options, user_input)
account_id = config[CONFIG_ACCOUNT_ID] if CONFIG_ACCOUNT_ID in config else None

account_info: AccountCoordinatorResult = self.hass.data[DOMAIN][account_id][DATA_ACCOUNT]
if (account_info is None):
Expand Down

0 comments on commit c934614

Please sign in to comment.