Skip to content

Commit 88f855f

Browse files
Next release (#1567)
2 parents 6f0be57 + 129eeb9 commit 88f855f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

_docs/blueprints/octopus_energy_octoplus_join_saving_session_custom_action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ blueprint:
1717
actions:
1818
name: Actions
1919
description: Notifications or similar to be run. {{message}} is an example message
20+
default: []
2021
selector:
2122
action: {}
2223
minimum_awarded_points:

_docs/blueprints/octopus_energy_octoplus_redeem_points_for_account_credit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ blueprint:
2626
actions:
2727
name: Actions
2828
description: Notifications or similar to be run. {{message}} is an example message when redemption is successful
29+
default: []
2930
selector:
3031
action: {}
3132
mode: single

_docs/entities/greenness_forecast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Standard calendar attributes will indicate the current/next highlighted greener
112112

113113
### Automation Example
114114

115-
Below is an example of raising a persistent notification 5 minutes before a saving session starts.
115+
Below is an example of raising a persistent notification 5 minutes before a greener night starts.
116116

117117
```yaml
118118
triggers:

custom_components/octopus_energy/api_client/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from asyncio import TimeoutError
66
from datetime import (datetime, timedelta, time, timezone)
77
from threading import RLock
8-
import pytz
8+
from zoneinfo import ZoneInfo
99

1010
from homeassistant.util.dt import (as_utc, now, as_local, parse_datetime, parse_date)
1111

@@ -1047,15 +1047,14 @@ async def async_get_greener_nights_forecast(self) -> list[GreennessForecast]:
10471047
try:
10481048
request_context = "greener-night-forecast"
10491049
client = self._create_client_session()
1050-
local_now = now()
10511050
url = f'{self._backend_base_url}/v1/graphql/'
10521051
payload = { "query": greener_night_forecast_query }
10531052
headers = { "Authorization": f"JWT {self._graphql_token}", integration_context_header: request_context }
10541053
async with client.post(url, json=payload, headers=headers) as greener_night_forecast_response:
10551054

10561055
response_body = await self.__async_read_response__(greener_night_forecast_response, url)
10571056
if (response_body is not None and "data" in response_body and "greenerNightsForecast" in response_body["data"]):
1058-
london_tz = pytz.timezone('Europe/London')
1057+
london_tz = ZoneInfo("Europe/London")
10591058
forecast = list(
10601059
map(lambda item: GreennessForecast(
10611060
parse_datetime(f"{item["date"]}T23:00:00").astimezone(london_tz),

custom_components/octopus_energy/heat_pump/zone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def async_set_hvac_mode(self, hvac_mode):
148148
self._attr_hvac_mode = hvac_mode
149149
self._attr_preset_mode = PRESET_NONE
150150
zone_mode = self.get_zone_mode()
151-
await self._client.async_set_heat_pump_zone_mode(self._account_id, self._heat_pump_id, self._zone.configuration.code, zone_mode, self._attr_target_temperature)
151+
await self._client.async_set_heat_pump_zone_mode(self._account_id, self._heat_pump_id, self._zone.configuration.code, zone_mode, None)
152152
except Exception as e:
153153
if self._is_mocked:
154154
_LOGGER.warning(f'Suppress async_set_hvac_mode error due to mocking mode: {e}')

0 commit comments

Comments
 (0)