cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Unexpected exception during first installation #130

Open Next9999 opened 1 year ago

Next9999 commented 1 year ago

This error originated from a custom integration.

Logger: custom_components.fullykiosk.config_flow Source: helpers/aiohttp_client.py:67 Integration: fullykiosk (documentation, issues) First occurred: 7:08:07 AM (1 occurrences) Last logged: 7:08:07 AM

Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 149, in get data = await response.json() File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json return await super().json(*args, loads=loads, **kwargs) 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('http://192.168.1.84:8123/?cmd=deviceInfo&password=1Octobre2016&type=json')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/fullykiosk/config_flow.py", line 80, in async_step_user info = await validate_input(self.hass, user_input) File "/config/custom_components/fullykiosk/config_flow.py", line 50, in validate_input deviceInfo = await fully.getDeviceInfo() File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 30, in getDeviceInfo result = await self.sendCommand("deviceInfo") File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 22, in sendCommand data = await self._rh.get( File "/usr/local/lib/python3.10/site-packages/fullykiosk/init.py", line 151, in get data = await response.json(content_type="text/html") File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json return await super().json(*args, loads=loads, **kwargs) File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1120, in json return loads(stripped.decode(encoding)) orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)