core: Vallox integration broken with 2021.12 (even with fix after 2021.12.3)
The problem
After updating to 2021.12.x (tried both 2021.12.0 and 2021.12.1) the vallox integration isn’t working anymore.
What version of Home Assistant Core has the issue?
core-2021.12.1
What was the last working version of Home Assistant Core?
core-2021.11
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Vallox
Link to integration documentation on our website
https://www.home-assistant.io/integrations/vallox/
Example YAML snippet
vallox:
host: 192.168.12.15
Anything in the logs that might be useful for us?
Logger: homeassistant.components.fan
Source: components/vallox/fan.py:102
Integration: Ventilator (documentation, issues)
First occurred: 12:22:10 (1 occurrences)
Last logged: 12:22:10
Error while setting up vallox platform for fan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/vallox/fan.py", line 77, in async_setup_platform
device = ValloxFan(
File "/usr/src/homeassistant/homeassistant/components/vallox/fan.py", line 102, in __init__
self._attr_unique_id = str(self.coordinator.data.get_uuid())
AttributeError: 'NoneType' object has no attribute 'get_uuid'
Logger: homeassistant.components.sensor
Source: components/vallox/sensor.py:55
Integration: Sensor (documentation, issues)
First occurred: 12:22:09 (1 occurrences)
Last logged: 12:22:09
Error while setting up vallox platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/vallox/sensor.py", line 238, in async_setup_platform
[
File "/usr/src/homeassistant/homeassistant/components/vallox/sensor.py", line 239, in <listcomp>
description.sensor_type(name, coordinator, description)
File "/usr/src/homeassistant/homeassistant/components/vallox/sensor.py", line 55, in __init__
uuid = self.coordinator.data.get_uuid()
AttributeError: 'NoneType' object has no attribute 'get_uuid'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 31 (22 by maintainers)
Yes, correct.
The developer docs are a good start I’d say. I highly recommend to use Visual Studio Code as outlined there, because the docker-based
dev container
feature gets you started quite easily. Once this is running, it basically is as easy as selectingTasks: Run Task
->Run Home Assistant Core
.The Configuration chapter talks about
ConfigEntry
and friends. Besides these docs, I would recommend to search for a light-weight integration that uses the feature already to compare to. It always helps to have working code to compare to.Applied the latest state of the PR. As expected, I got this in the log, but after that it works:
Thanks @htuomola! That’s the initial issue that causes this.
There’s this third error that also happens at same time, just realized it wasn’t mentioned in this issue.
I’m running this in Raspberry Pi 4 and Vallox 145 MV unit. Everything worked fine before 2021.12.x for me too.