Replies: 1 comment
-
Updated to v0.17 of FoxEss Integration and now the connection is working properly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
unfortunately I'm not getting the fox connection running on my Home Assistant instance. I'm facing the following issue:
`Logger: custom_components.foxess.sensor
Source: components/rest/data.py:63
Integration: foxess (documentation, issues)
First occurred: 13:50:03 (1 occurrences)
Last logged: 13:50:03
Unexpected error fetching FoxESS data: Unexpected type for 'content', <class 'dict'>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 181, in _async_update_data
return await self.update_method()
File "/config/custom_components/foxess/sensor.py", line 112, in async_update_data
token = await authAndgetToken(hass, username, hashedPassword)
File "/config/custom_components/foxess/sensor.py", line 156, in authAndgetToken
await restAuth.async_update()
File "/usr/src/homeassistant/homeassistant/components/rest/data.py", line 63, in async_update
response = await self._async_client.request(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1520, in request
request = self.build_request(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 360, in build_request
return Request(
File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 339, in init
headers, stream = encode_request(
File "/usr/local/lib/python3.10/site-packages/httpx/_content.py", line 209, in encode_request
return encode_content(content)
File "/usr/local/lib/python3.10/site-packages/httpx/_content.py", line 134, in encode_content
raise TypeError(f"Unexpected type for 'content', {type(content)!r}")
TypeError: Unexpected type for 'content', <class 'dict'>`
Any idea how to fix this issue?
I'm using the following versions of HA:
Home Assistant 2023.1.6
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230110.0 - latest
Beta Was this translation helpful? Give feedback.
All reactions