Skip to content

Commit

Permalink
Merge pull request #368 from jwillemsen/jwi-logginggethvacmode
Browse files Browse the repository at this point in the history
Logging consistency changes
  • Loading branch information
jwillemsen authored Dec 5, 2024
2 parents 6ce1663 + 95daafc commit 5575136
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions custom_components/daikin_onecta/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def setpoint(self):
if oo is not None:
setpoint = oo["setpoints"].get(self._setpoint)
_LOGGER.info(
"Device '%s': %s operation mode %s has setpoint %s",
"Device '%s' %s operation mode %s has setpoint %s",
self._device.name,
self._setpoint,
operation_mode,
Expand All @@ -191,7 +191,7 @@ def sensory_data(self, setpoint):
if sensoryData is not None:
sensoryData = sensoryData.get("value").get(setpoint)
_LOGGER.info(
"Device '%s': %s sensoryData %s",
"Device '%s' %s sensoryData %s",
self._device.name,
setpoint,
sensoryData,
Expand Down Expand Up @@ -251,7 +251,7 @@ def get_current_temperature(self):
if self._setpoint == "leavingWaterOffset" and lwsensor is not None:
current_temp = lwsensor["value"]
_LOGGER.info(
"Device '%s': %s current temperature '%s'",
"Device '%s' %s current temperature '%s'",
self._device.name,
self._setpoint,
current_temp,
Expand All @@ -266,7 +266,7 @@ def get_max_temp(self):
else:
max_temp = super().max_temp
_LOGGER.info(
"Device '%s': %s max temperature '%s'",
"Device '%s' %s max temperature '%s'",
self._device.name,
self._setpoint,
max_temp,
Expand All @@ -281,7 +281,7 @@ def get_min_temp(self):
else:
min_temp = super().min_temp
_LOGGER.info(
"Device '%s': %s min temperature '%s'",
"Device '%s' %s min temperature '%s'",
self._device.name,
self._setpoint,
min_temp,
Expand All @@ -294,7 +294,7 @@ def get_target_temperature(self):
if setpointdict is not None:
value = setpointdict["value"]
_LOGGER.info(
"Device '%s': %s target temperature '%s'",
"Device '%s' %s target temperature '%s'",
self._device.name,
self._setpoint,
value,
Expand All @@ -311,7 +311,7 @@ def get_target_temperature_step(self):
else:
step_value = super().target_temperature_step
_LOGGER.info(
"Device '%s': %s target temperature step '%s'",
"Device '%s' %s target temperature step '%s'",
self._device.name,
self._setpoint,
step_value,
Expand Down Expand Up @@ -352,7 +352,7 @@ def get_hvac_mode(self):
if onoff["value"] != "off":
mode = operationmode["value"]
_LOGGER.info(
"Device '%s': %s hvac mode '%s'",
"Device '%s' %s hvac mode '%s'",
self._device.name,
self._setpoint,
mode,
Expand Down Expand Up @@ -477,7 +477,7 @@ def get_fan_modes(self):
if operationmodedict is not None:
fan_speed = operationmodedict.get("fanSpeed")
if fan_speed is not None:
_LOGGER.info("Found fanspeed %s", fan_speed)
_LOGGER.info("Device '%s' has fanspeed %s", self._device.name, fan_speed)
for c in fan_speed["currentMode"]["values"]:
if c == FANMODE_FIXED:
fsm = fan_speed.get("modes")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/daikin_onecta/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, device, coordinator, management_point_type, embedded_id):
self._management_point_type = management_point_type
self.update_state()
if self.supported_features & WaterHeaterEntityFeature.TARGET_TEMPERATURE:
_LOGGER.debug("Device '%s': tank temperature is settable", device.name)
_LOGGER.debug("Device '%s' tank temperature is settable", device.name)

def update_state(self) -> None:
self._attr_name = self._device.name
Expand Down

0 comments on commit 5575136

Please sign in to comment.