Skip to content

Commit b042a15

Browse files
committed
chore: Updated target home assistant version
1 parent d43566c commit b042a15

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

custom_components/octopus_energy/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
EVENT_HOMEASSISTANT_STOP
1010
)
1111
from homeassistant.helpers import (
12-
issue_registry as ir,
13-
helper_integration as hi
12+
issue_registry as ir
13+
)
14+
15+
from homeassistant.helpers.helper_integration import (
16+
async_remove_helper_config_entry_from_source_device,
1417
)
1518

1619
from .api_client_home_pro import OctopusEnergyHomeProApiClient
@@ -130,7 +133,7 @@ async def async_migrate_entry(hass, config_entry):
130133
new_data = await async_migrate_cost_tracker_config(config_entry.version, new_data, hass.config_entries.async_entries)
131134

132135
if config_entry.version < 9:
133-
hi.async_remove_helper_config_entry_from_source_device(
136+
async_remove_helper_config_entry_from_source_device(
134137
hass,
135138
helper_config_entry_id=config_entry.entry_id,
136139
source_device_id=new_data[CONFIG_COST_TRACKER_TARGET_ENTITY_ID],

custom_components/octopus_energy/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def __setup_account_schema__(self, include_account_id = True):
242242
vol.Required(CONFIG_MAIN_INTELLIGENT_SETTINGS): section(
243243
vol.Schema(
244244
{
245-
vol.Required(CONFIG_MAIN_INTELLIGENT_MANUAL_DISPATCHES): bool,
245+
vol.Required(CONFIG_MAIN_INTELLIGENT_MANUAL_DISPATCHES, default=False): bool,
246246
vol.Required(CONFIG_MAIN_INTELLIGENT_RATE_MODE): selector.SelectSelector(
247247
selector.SelectSelectorConfig(
248248
options=[

requirements.test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pytest
22
pytest-socket
33
pytest-asyncio
44
mock
5-
homeassistant
5+
homeassistant==2025.8.3
66
pydantic
77
psutil-home-assistant
88
sqlalchemy

0 commit comments

Comments
 (0)