core: Error while setting up smartthings platform for climate
The problem
After updating to 2023.12 the smartthings integration fails to start/recognize my AC units
What version of Home Assistant Core has the issue?
2023.12.0
What was the last working version of Home Assistant Core?
2023.11.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Smartthings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings/
Diagnostics information
home-assistant_smartthings_2023-12-06T20-43-51.769Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2023-12-06 17:37:55.424 ERROR (MainThread) [homeassistant.components.climate] Error while setting up smartthings platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 117, in async_setup_entry
entities.append(SmartThingsAirConditioner(device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 351, in __init__
self._attr_swing_modes = self._determine_swing_modes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 505, in _determine_swing_modes
supported_swings = [
^
TypeError: 'NoneType' object is not iterable
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 6
- Comments: 23 (4 by maintainers)
I created merge request to fix that: https://github.com/haimn/core/commit/566ca5bf72cf6063e26448ba5683b78edf8b1758
A fix has been made so once you have installed 2023.12.2 it should be working again.
Core2023.12.1
Supervisor2023.11.6
Operating System11.2
Frontend20231208.2
This Is my log:
Logger: homeassistant.components.climate Source: helpers/entity_platform.py:361 Integration: Climatizzatore (documentation, issues) First occurred: 10:02:21 (1 occurrences) Last logged: 10:02:21
Error while setting up smartthings platform for climate Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 361, in _async_setup_platform await asyncio.shield(task) File “/usr/src/homeassistant/homeassistant/components/smartthings/climate.py”, line 117, in async_setup_entry entities.append(SmartThingsAirConditioner(device)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/smartthings/climate.py”, line 350, in init self._attr_preset_modes = self._determine_preset_modes() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/smartthings/climate.py”, line 534, in _determine_preset_modes if WINDFREE in supported_modes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type ‘NoneType’ is not iterable