mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix regression to evohome debug logging (#140000)
* fix regression in debug logging * lint
This commit is contained in:
parent
ccbaf76e44
commit
113cd4bfcc
@ -11,6 +11,7 @@ from typing import Any
|
|||||||
import evohomeasync as ec1
|
import evohomeasync as ec1
|
||||||
import evohomeasync2 as ec2
|
import evohomeasync2 as ec2
|
||||||
from evohomeasync2.const import (
|
from evohomeasync2.const import (
|
||||||
|
SZ_DHW,
|
||||||
SZ_GATEWAY_ID,
|
SZ_GATEWAY_ID,
|
||||||
SZ_GATEWAY_INFO,
|
SZ_GATEWAY_INFO,
|
||||||
SZ_GATEWAYS,
|
SZ_GATEWAYS,
|
||||||
@ -19,8 +20,9 @@ from evohomeasync2.const import (
|
|||||||
SZ_TEMPERATURE_CONTROL_SYSTEMS,
|
SZ_TEMPERATURE_CONTROL_SYSTEMS,
|
||||||
SZ_TIME_ZONE,
|
SZ_TIME_ZONE,
|
||||||
SZ_USE_DAYLIGHT_SAVE_SWITCHING,
|
SZ_USE_DAYLIGHT_SAVE_SWITCHING,
|
||||||
|
SZ_ZONES,
|
||||||
)
|
)
|
||||||
from evohomeasync2.schemas.typedefs import EvoLocStatusResponseT
|
from evohomeasync2.schemas.typedefs import EvoLocStatusResponseT, EvoTcsConfigResponseT
|
||||||
|
|
||||||
from homeassistant.const import CONF_SCAN_INTERVAL
|
from homeassistant.const import CONF_SCAN_INTERVAL
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -113,17 +115,19 @@ class EvoDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
SZ_USE_DAYLIGHT_SAVE_SWITCHING
|
SZ_USE_DAYLIGHT_SAVE_SWITCHING
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
tcs_info: EvoTcsConfigResponseT = self.tcs.config # type: ignore[assignment]
|
||||||
|
tcs_info[SZ_ZONES] = [zone.config for zone in self.tcs.zones]
|
||||||
|
if self.tcs.hotwater:
|
||||||
|
tcs_info[SZ_DHW] = self.tcs.hotwater.config
|
||||||
gwy_info = {
|
gwy_info = {
|
||||||
SZ_GATEWAY_ID: self.loc.gateways[0].id,
|
SZ_GATEWAY_ID: self.loc.gateways[0].id,
|
||||||
SZ_TEMPERATURE_CONTROL_SYSTEMS: [
|
SZ_TEMPERATURE_CONTROL_SYSTEMS: [tcs_info],
|
||||||
self.loc.gateways[0].systems[0].config
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
config = {
|
config = {
|
||||||
SZ_LOCATION_INFO: loc_info,
|
SZ_LOCATION_INFO: loc_info,
|
||||||
SZ_GATEWAYS: [{SZ_GATEWAY_INFO: gwy_info}],
|
SZ_GATEWAYS: [{SZ_GATEWAY_INFO: gwy_info}],
|
||||||
}
|
}
|
||||||
self.logger.debug("Config = %s", config)
|
self.logger.debug("Config = %s", [config])
|
||||||
|
|
||||||
async def call_client_api(
|
async def call_client_api(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user