After upgrade to version 04/12. Multiple errors are shown in the log:
Logger: homeassistant
Source: custom_components/xiaomi_miot/camera.py:390
Integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 8:02:15 AM (1 occurrences)
Last logged: 8:02:15 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 315, in preload_stream
stream = await camera.create_stream()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 455, in create_stream
source = await self.stream_source()
File "/config/custom_components/xiaomi_miot/camera.py", line 326, in stream_source
return await self.hass.async_add_executor_job(partial(fun, *kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(self.args, **self.kwargs)
File "/config/custom_components/xiaomi_miot/camera.py", line 390, in get_stream_address
self.is_streaming = self._last_url and True
AttributeError: can't set attribute
Logger: aiohttp.server
Source: custom_components/xiaomi_miot/camera.py:390
Integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 8:05:02 AM (1 occurrences)
Last logged: 8:05:02 AM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 629, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 647, in handle
image = await _async_get_image(
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 166, in _async_get_image
image_bytes = await camera.async_camera_image(
File "/config/custom_components/xiaomi_miot/camera.py", line 101, in async_camera_image
url = await self.image_source()
File "/config/custom_components/xiaomi_miot/camera.py", line 334, in image_source
return await self.stream_source()
File "/config/custom_components/xiaomi_miot/camera.py", line 326, in stream_source
return await self.hass.async_add_executor_job(partial(fun, *kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(self.args, **self.kwargs)
File "/config/custom_components/xiaomi_miot/camera.py", line 390, in get_stream_address
self.is_streaming = self._last_url and True
AttributeError: can't set attribute
After upgrade to version 04/12. Multiple errors are shown in the log:
Logger: homeassistant Source: custom_components/xiaomi_miot/camera.py:390 Integration: Xiaomi Miot Auto (documentation, issues) First occurred: 8:02:15 AM (1 occurrences) Last logged: 8:02:15 AM
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 315, in preload_stream stream = await camera.create_stream() File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 455, in create_stream source = await self.stream_source() File "/config/custom_components/xiaomi_miot/camera.py", line 326, in stream_source return await self.hass.async_add_executor_job(partial(fun, *kwargs)) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(self.args, **self.kwargs) File "/config/custom_components/xiaomi_miot/camera.py", line 390, in get_stream_address self.is_streaming = self._last_url and True AttributeError: can't set attribute
Logger: aiohttp.server Source: custom_components/xiaomi_miot/camera.py:390 Integration: Xiaomi Miot Auto (documentation, issues) First occurred: 8:05:02 AM (1 occurrences) Last logged: 8:05:02 AM
Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 629, in get return await self.handle(request, camera) File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 647, in handle image = await _async_get_image( File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 166, in _async_get_image image_bytes = await camera.async_camera_image( File "/config/custom_components/xiaomi_miot/camera.py", line 101, in async_camera_image url = await self.image_source() File "/config/custom_components/xiaomi_miot/camera.py", line 334, in image_source return await self.stream_source() File "/config/custom_components/xiaomi_miot/camera.py", line 326, in stream_source return await self.hass.async_add_executor_job(partial(fun, *kwargs)) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(self.args, **self.kwargs) File "/config/custom_components/xiaomi_miot/camera.py", line 390, in get_stream_address self.is_streaming = self._last_url and True AttributeError: can't set attribute
Camera in question: