mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use literal string interpolation in honeywell (#26386)
* Initial commit * fix lint hints
This commit is contained in:
parent
60ef41cc69
commit
525a434511
@ -161,9 +161,7 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
self._password = password
|
self._password = password
|
||||||
|
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
# noqa; pylint: disable=protected-access
|
"latestData = %s ", device._data # pylint: disable=protected-access
|
||||||
"latestData = %s ",
|
|
||||||
device._data,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# not all honeywell HVACs support all modes
|
# not all honeywell HVACs support all modes
|
||||||
@ -176,8 +174,7 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
| SUPPORT_TARGET_TEMPERATURE_RANGE
|
| SUPPORT_TARGET_TEMPERATURE_RANGE
|
||||||
)
|
)
|
||||||
|
|
||||||
# noqa; pylint: disable=protected-access
|
if device._data["canControlHumidification"]: # pylint: disable=protected-access
|
||||||
if device._data["canControlHumidification"]:
|
|
||||||
self._supported_features |= SUPPORT_TARGET_HUMIDITY
|
self._supported_features |= SUPPORT_TARGET_HUMIDITY
|
||||||
|
|
||||||
if device.raw_ui_data["SwitchEmergencyHeatAllowed"]:
|
if device.raw_ui_data["SwitchEmergencyHeatAllowed"]:
|
||||||
@ -320,7 +317,7 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
# Set hold if this is not the case
|
# Set hold if this is not the case
|
||||||
if getattr(self._device, f"hold_{mode}") is False:
|
if getattr(self._device, f"hold_{mode}") is False:
|
||||||
# Get next period key
|
# Get next period key
|
||||||
next_period_key = "{}NextPeriod".format(mode.capitalize())
|
next_period_key = f"{mode.capitalize()}NextPeriod"
|
||||||
# Get next period raw value
|
# Get next period raw value
|
||||||
next_period = self._device.raw_ui_data.get(next_period_key)
|
next_period = self._device.raw_ui_data.get(next_period_key)
|
||||||
# Get next period time
|
# Get next period time
|
||||||
@ -460,7 +457,5 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
_LOGGER.error("SomeComfort update failed, Retrying - Error: %s", exp)
|
_LOGGER.error("SomeComfort update failed, Retrying - Error: %s", exp)
|
||||||
|
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
# noqa; pylint: disable=protected-access
|
"latestData = %s ", self._device._data # pylint: disable=protected-access
|
||||||
"latestData = %s ",
|
|
||||||
self._device._data,
|
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user