Closed egguy closed 2 years ago
Good catch. Our (breaking) update to pyoverkiz indeed requires changes to ha-tahoma, however we didn't have time to port it back yet.
See https://github.com/home-assistant/core/blob/dev/homeassistant/components/overkiz/coordinator.py. We already made them in core.
Did you read the instructions?
The problem
The problem is present when there's an EnventState which happen with a
DataType.JSON_OBJECT
.From what I've understood there's a double decoding, the first if from py-overkiz 1.1.0 (and 1.1.1) (models.py:300) and the function _get_state.
When an Event happen with a JSON type data, it's decoded in the overkiz API and then decoded again in the tahoma integration. It's working OK when an int is cast to an int, but json.loads don't like it.
I've wrapped the line 140 from the coordinator.py
With a try except to prevent this from crashing the integration
(I know this combo of lib version is not normal. Sorry if it's generating noise for you.)
What version of this integration (ha-tahoma) has the issue?
climate/SomfyHeatingTemperatureInterface
What version of Home Assistant Core has the issue?
core-2021.12.9
Which gateway / hub do you use?
Rexel Energeasy
Device model
<unknown>
Home Assistant log
Logs
``` 2022-01-15 01:22:44 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1642206159815, name=Additional information
No response