Skip to content

Commit c4a2f84

Browse files
committed
fix: fixed target timeframes to support reloading entity upon updating configuration (15 minutes dev time)
1 parent e542f71 commit c4a2f84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

custom_components/target_timeframes/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None)
120120
errors = validate_target_timeframe_config(config)
121121

122122
if len(errors) < 1 and user_input is not None:
123-
return self.async_update_and_abort(
123+
return self.async_update_reload_and_abort(
124124
self._get_entry(),
125125
self._get_reconfigure_subentry(),
126126
data_updates=config,
@@ -165,7 +165,7 @@ async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None)
165165
errors = validate_rolling_target_timeframe_config(config)
166166

167167
if len(errors) < 1 and user_input is not None:
168-
return self.async_update_and_abort(
168+
return self.async_update_reload_and_abort(
169169
self._get_entry(),
170170
self._get_reconfigure_subentry(),
171171
data_updates=config,

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Target Timeframes",
33
"render_readme": true,
4-
"homeassistant": "2025.4.0",
4+
"homeassistant": "2025.9.0",
55
"hide_default_branch": true
66
}

0 commit comments

Comments
 (0)