Skip to content

Commit 6ce1663

Browse files
committed
Logging changes
* custom_components/daikin_onecta/climate.py: * custom_components/daikin_onecta/coordinator.py:
1 parent 8435ae1 commit 6ce1663

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

custom_components/daikin_onecta/climate.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def get_hvac_modes(self):
378378
async def async_set_hvac_mode(self, hvac_mode):
379379
"""Set HVAC mode."""
380380
_LOGGER.debug(
381-
"Device '%s' request to set hvac_mode to %s",
381+
"Device '%s' request to set hvac_mode to '%s'",
382382
self._device.name,
383383
hvac_mode,
384384
)
@@ -403,7 +403,7 @@ async def async_set_hvac_mode(self, hvac_mode):
403403
result &= await self._device.patch(self._device.id, self._embedded_id, "onOffMode", "", on_off_mode)
404404
if result is False:
405405
_LOGGER.warning(
406-
"Device '%s' problem setting onOffMode to %s",
406+
"Device '%s' problem setting onOffMode to '%s'",
407407
self._device.name,
408408
on_off_mode,
409409
)
@@ -423,7 +423,7 @@ async def async_set_hvac_mode(self, hvac_mode):
423423
)
424424
if result is False:
425425
_LOGGER.warning(
426-
"Device '%s' problem setting operationMode to %s",
426+
"Device '%s' problem setting operationMode to '%s'",
427427
self._device.name,
428428
operation_mode,
429429
)
@@ -537,7 +537,7 @@ async def async_set_fan_mode(self, fan_mode):
537537
)
538538
if res is False:
539539
_LOGGER.warning(
540-
"Device '%s' problem setting fan_mode fixed to %s",
540+
"Device '%s' problem setting fan_mode fixed to '%s'",
541541
self._device.name,
542542
new_fixed_mode,
543543
)
@@ -551,7 +551,7 @@ async def async_set_fan_mode(self, fan_mode):
551551
)
552552
if res is False:
553553
_LOGGER.warning(
554-
"Device '%s' problem setting fan_mode to %s",
554+
"Device '%s' problem setting fan_mode to '%s'",
555555
self._device.name,
556556
fan_mode,
557557
)
@@ -617,7 +617,7 @@ def get_swing_horizontal_modes(self):
617617

618618
async def __set_swing(self, direction, swing_mode):
619619
_LOGGER.debug(
620-
"Device '%s' request to set swing %s mode to %s",
620+
"Device '%s' request to set swing %s mode to '%s'",
621621
self._device.name,
622622
direction,
623623
swing_mode,
@@ -647,7 +647,7 @@ async def __set_swing(self, direction, swing_mode):
647647
)
648648
if res is False:
649649
_LOGGER.warning(
650-
"Device '%s' problem setting %s swing mode to %s",
650+
"Device '%s' problem setting %s swing mode to '%s'",
651651
self._device.name,
652652
direction,
653653
new_mode,

custom_components/daikin_onecta/coordinator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def update_settings(self, config_entry: ConfigEntry):
7171
_LOGGER.debug("Daikin coordinator updating settings.")
7272
self.options = config_entry.options
7373
self.update_interval = self.determine_update_interval(self.hass)
74-
_LOGGER.info("Daikin coordinator changed interval to %s", self.update_interval)
74+
_LOGGER.info("Daikin coordinator changed interval to '%s'", self.update_interval)
7575

7676
def determine_update_interval(self, hass: HomeAssistant):
7777
# Default of low scan minutes interval

0 commit comments

Comments
 (0)