-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hello,
I am encountering an error in the custom integration Fujitsu Airstage during the climate device state update.
Here is the full error message from Home Assistant logs:
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 481, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 180, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 561, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1018, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1140, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1076, in __async_calculate_state
capability_attr = self.capability_attributes
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 308, in capability_attributes
supported_features = self.supported_features
File "/config/custom_components/fujitsu_airstage/climate.py", line 320, in supported_features
if self.swing_mode:
File "/config/custom_components/fujitsu_airstage/climate.py", line 216, in swing_mode
if self._ac.get_vertical_swing() != None:
File "/usr/local/lib/python3.13/site-packages/pyairstage/airstageAC.py", line 224, in get_vertical_swing
return VALUE_TO_BOOLEAN[int(value)]
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Additional information:
Home Assistant version: 2025.7.2
Fujitsu Airstage integration version: v1.4.4
The issue seems caused by get_vertical_swing() returning None, which is not handled properly in the code before converting to int.
A fix might be to check for None before attempting int() conversion.
Thank you in advance for your help!