Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging consistency changes #368

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions custom_components/daikin_onecta/climate.py
Original file line number Diff line number Diff line change
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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")
2 changes: 1 addition & 1 deletion custom_components/daikin_onecta/water_heater.py
Original file line number Diff line number Diff line change
@@ -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