Skip to content

Commit 89cb665

Browse files
Merge pull request #48 from BottlecapDave/develop
Next release
2 parents 7142364 + 950419e commit 89cb665

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

_docs/faq.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## I've updated the configuration of one of my target timeframe sensors but it's not updating. Is there something wrong?
44

5-
For some reason when you update the configuration via the integration page, the associated entities don't update. You'll need to reload the parent entry to get the configuration to take effect. This is something I'm currently investigating.
5+
This was an issue before Home Assistant 2025.09. If you update to 2025.09 or later, this should no longer be an issue.
6+
7+
If you are on a version before Home Assistant 2025.09, then you'll need to reload the parent entry to get the configuration to take effect.
68

79
## I've setup a target timeframe with the default time period (00:00-00:00) or a rolling target timeframe looking ahead for 24 hours but it's not updating. Is something broken?
810

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,

custom_components/target_timeframes/const.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
vol.Optional(CONFIG_TARGET_ROLLING_TARGET, default=False): bool,
120120
vol.Optional(CONFIG_TARGET_LATEST_VALUES, default=False): bool,
121121
vol.Optional(CONFIG_TARGET_FIND_HIGHEST_VALUES, default=False): bool,
122-
vol.Optional(CONFIG_TARGET_MIN_VALUE): float,
123-
vol.Optional(CONFIG_TARGET_MAX_VALUE): float,
122+
vol.Optional(CONFIG_TARGET_MIN_VALUE): vol.Coerce(float),
123+
vol.Optional(CONFIG_TARGET_MAX_VALUE): vol.Coerce(float),
124124
vol.Optional(CONFIG_TARGET_WEIGHTING): str,
125125
vol.Required(CONFIG_TARGET_DANGEROUS_SETTINGS): section(
126126
vol.Schema(
@@ -169,8 +169,8 @@
169169
),
170170
vol.Optional(CONFIG_TARGET_LATEST_VALUES): bool,
171171
vol.Optional(CONFIG_TARGET_FIND_HIGHEST_VALUES): bool,
172-
vol.Optional(CONFIG_TARGET_MIN_VALUE): float,
173-
vol.Optional(CONFIG_TARGET_MAX_VALUE): float,
172+
vol.Optional(CONFIG_TARGET_MIN_VALUE): vol.Coerce(float),
173+
vol.Optional(CONFIG_TARGET_MAX_VALUE): vol.Coerce(float),
174174
vol.Optional(CONFIG_TARGET_WEIGHTING): str,
175175
vol.Required(CONFIG_TARGET_DANGEROUS_SETTINGS): section(
176176
vol.Schema(

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)