I just discovered that there are several errors regarding the Tronity custom component in my HA logfile.
Has there been a general problem in server connectivity between 7:30 - 9:20 (CET) this morning?
Logger: homeassistant.helpers.entity
Source: custom_components/tronity/sensor.py:108
Integration: Tronity
First occurred: 07:46:03 (3 occurrences)
Last logged: 07:46:04
(Update for sensor.tronity_e2008_plugged fails
Update for sensor.tronity_e2008_remainig_range fails
Update for sensor.tronity_e2008_odometer fails
Traceback (most recent call last):
File "/config/custom_components/tronity/sensor.py", line 103, in _async_update_data
data = await response.json(content_type="application/json")
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://api.tronity.tech/tronity/vehicles/64477579fe825300125ca489/last_record')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 550, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 755, in async_device_update
raise exc
File "/config/custom_components/tronity/sensor.py", line 207, in async_update
File "/config/custom_components/tronity/sensor.py", line 108, in _async_update_data
raise _LOGGER(
TypeError: 'HassLogger' object is not callable)
Logger: homeassistant.helpers.entity
Source: custom_components/tronity/sensor.py:48
Integration: Tronity
First occurred: 25. April 2023 um 09:44:29 (376 occurrences)
Last logged: 09:20:03
Update for sensor.tronity_e2008_charging fails
Update for sensor.tronity_e2008_remainig_range fails
Update for sensor.tronity_e2008_odometer fails
Update for sensor.tronity_e2008_charge_remaining_time fails
Update for sensor.tronity_e2008_charger_power fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 550, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 755, in async_device_update
raise exc
File "/config/custom_components/tronity/sensor.py", line 207, in async_update
data = await self.coordinator._async_update_data()
File "/config/custom_components/tronity/sensor.py", line 93, in _async_update_data
bearer_token = await get_bearer_token(self.client_id, self.client_secret)
File "/config/custom_components/tronity/sensor.py", line 48, in get_bearer_token
response_json = await response.json()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://api.tronity.tech/authentication')