ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.13k stars 158 forks source link

Can't set temperature of AC unit when HA is using Celcius #781

Open theCheek opened 1 month ago

theCheek commented 1 month ago

Describe the bug When changing HA's core units to celcius, changing an AC unit's temperature will throw an error

Expected behavior AC temperature should change.

Screenshots If applicable, add screenshots to help explain your problem.

Environment details:

Output of HA logs Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:241 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 1:04:35 AM (25 occurrences) Last logged: 1:01:03 PM

[281472302383312] Unexpected exception [281472137895296] Unexpected exception [281472398600816] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 924, in async_service_temperature_set await entity.async_set_temperature(**kwargs) File "/config/custom_components/smartthinq_sensors/climate.py", line 388, in async_set_temperature await self._device.set_target_temp(new_temp) File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 739, in set_target_temp raise ValueError(f"Target temperature out of range: {temp}") ValueError: Target temperature out of range: 75.2

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.