Skip to content

Commit

Permalink
fix: update Hub signature in config flow - fixes #147 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobloem authored Dec 9, 2024
1 parent 90e5d3e commit 1b768a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/stateful_scenes/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.helpers import selector
from . import load_scenes_file

from .const import (
CONF_DEBOUNCE_TIME,
Expand Down Expand Up @@ -79,9 +80,10 @@ async def async_step_configure_internal_scenes(

if user_input is not None:
try:
self.hub = Hub(
scene_confs = await load_scenes_file(user_input[CONF_SCENE_PATH])
_ = Hub(
hass=self.hass,
scene_path=user_input[CONF_SCENE_PATH],
scene_confs=scene_confs,
number_tolerance=user_input[CONF_NUMBER_TOLERANCE],
)
except StatefulScenesYamlInvalid as err:
Expand Down

0 comments on commit 1b768a8

Please sign in to comment.