Skip to content

Commit 95daafc

Browse files
committed
Logging consistency changes
* custom_components/daikin_onecta/climate.py: * custom_components/daikin_onecta/water_heater.py:
1 parent 7fa8192 commit 95daafc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

custom_components/daikin_onecta/climate.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def setpoint(self):
170170
if oo is not None:
171171
setpoint = oo["setpoints"].get(self._setpoint)
172172
_LOGGER.info(
173-
"Device '%s': %s operation mode %s has setpoint %s",
173+
"Device '%s' %s operation mode %s has setpoint %s",
174174
self._device.name,
175175
self._setpoint,
176176
operation_mode,
@@ -191,7 +191,7 @@ def sensory_data(self, setpoint):
191191
if sensoryData is not None:
192192
sensoryData = sensoryData.get("value").get(setpoint)
193193
_LOGGER.info(
194-
"Device '%s': %s sensoryData %s",
194+
"Device '%s' %s sensoryData %s",
195195
self._device.name,
196196
setpoint,
197197
sensoryData,
@@ -251,7 +251,7 @@ def get_current_temperature(self):
251251
if self._setpoint == "leavingWaterOffset" and lwsensor is not None:
252252
current_temp = lwsensor["value"]
253253
_LOGGER.info(
254-
"Device '%s': %s current temperature '%s'",
254+
"Device '%s' %s current temperature '%s'",
255255
self._device.name,
256256
self._setpoint,
257257
current_temp,
@@ -266,7 +266,7 @@ def get_max_temp(self):
266266
else:
267267
max_temp = super().max_temp
268268
_LOGGER.info(
269-
"Device '%s': %s max temperature '%s'",
269+
"Device '%s' %s max temperature '%s'",
270270
self._device.name,
271271
self._setpoint,
272272
max_temp,
@@ -281,7 +281,7 @@ def get_min_temp(self):
281281
else:
282282
min_temp = super().min_temp
283283
_LOGGER.info(
284-
"Device '%s': %s min temperature '%s'",
284+
"Device '%s' %s min temperature '%s'",
285285
self._device.name,
286286
self._setpoint,
287287
min_temp,
@@ -294,7 +294,7 @@ def get_target_temperature(self):
294294
if setpointdict is not None:
295295
value = setpointdict["value"]
296296
_LOGGER.info(
297-
"Device '%s': %s target temperature '%s'",
297+
"Device '%s' %s target temperature '%s'",
298298
self._device.name,
299299
self._setpoint,
300300
value,
@@ -311,7 +311,7 @@ def get_target_temperature_step(self):
311311
else:
312312
step_value = super().target_temperature_step
313313
_LOGGER.info(
314-
"Device '%s': %s target temperature step '%s'",
314+
"Device '%s' %s target temperature step '%s'",
315315
self._device.name,
316316
self._setpoint,
317317
step_value,
@@ -352,7 +352,7 @@ def get_hvac_mode(self):
352352
if onoff["value"] != "off":
353353
mode = operationmode["value"]
354354
_LOGGER.info(
355-
"Device '%s': %s hvac mode '%s'",
355+
"Device '%s' %s hvac mode '%s'",
356356
self._device.name,
357357
self._setpoint,
358358
mode,
@@ -477,7 +477,7 @@ def get_fan_modes(self):
477477
if operationmodedict is not None:
478478
fan_speed = operationmodedict.get("fanSpeed")
479479
if fan_speed is not None:
480-
_LOGGER.info("Found fanspeed %s", fan_speed)
480+
_LOGGER.info("Device '%s' has fanspeed %s", self._device.name, fan_speed)
481481
for c in fan_speed["currentMode"]["values"]:
482482
if c == FANMODE_FIXED:
483483
fsm = fan_speed.get("modes")

custom_components/daikin_onecta/water_heater.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, device, coordinator, management_point_type, embedded_id):
5454
self._management_point_type = management_point_type
5555
self.update_state()
5656
if self.supported_features & WaterHeaterEntityFeature.TARGET_TEMPERATURE:
57-
_LOGGER.debug("Device '%s': tank temperature is settable", device.name)
57+
_LOGGER.debug("Device '%s' tank temperature is settable", device.name)
5858

5959
def update_state(self) -> None:
6060
self._attr_name = self._device.name

0 commit comments

Comments
 (0)