ol-iver / denonavr

Automation Library for Denon AVR receivers.
MIT License
174 stars 66 forks source link

Error handling request - Denon AVR Network Receivers - Denon-AVR-X4200W #178

Closed ingeniumdesign closed 3 years ago

ingeniumdesign commented 3 years ago

Denon AVR Network Receivers Unknown error occurred Please confirm adding the receiver

AVR: Denon-AVR-X4200W

Error handling request components/denonavr/receiver.py (ERROR)

Logger: aiohttp.server Source: components/denonavr/receiver.py:66 First occurred: 20:30:00 (6 occurrences) Last logged: 20:35:50

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle resp = await handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper result = await method(view, request, *args, kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 155, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step result: Dict = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/denonavr/config_flow.py", line 146, in async_step_confirm return await self.async_step_connect() File "/usr/src/homeassistant/homeassistant/components/denonavr/config_flow.py", line 160, in async_step_connect if not await connect_denonavr.async_connect_receiver(): File "/usr/src/homeassistant/homeassistant/components/denonavr/receiver.py", line 33, in async_connect_receiver if not await self._hass.async_add_executor_job(self.init_receiver_class): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/denonavr/receiver.py", line 66, in init_receiver_class self._receiver = denonavr.DenonAVR( File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 344, in init self.update() File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 524, in update self.ensure_configuration() File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 516, in ensure_configuration self._support_update_avr_2016 = support_avr_2016.result() File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result return self.get_result() File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in get_result raise self._exception File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, self.kwargs) File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 644, in _update_avr_2016 executor.submit(self._audyssey.update()) File "/usr/local/lib/python3.8/site-packages/denonavr/audyssey.py", line 109, in update self.dynamiceq = bool(int(param.text)) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

JPHutchins commented 3 years ago

Thank you! This is a known problem and has been fixed so make sure to upgrade Home Assistant as new versions are released. Every Wednesday IIRC.

JPHutchins commented 3 years ago

@ingeniumdesign This is resolved in version 0.9.8 included in HA 2020.12.2