Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 390, in start

resp = await self._request_handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 366, in _handle

resp = await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 106, in impl

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 113, in handle

result = await result


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/emulated_hue/hue_api.py", line 197, in put

parsed = parse_hue_api_put_light_body(request_json, entity)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/emulated_hue/hue_api.py", line 344, in parse_hue_api_put_light_body

return (result, brightness) if report_brightness else (result, None)
UnboundLocalError: local variable 'report_brightness' referenced before assignment

Traceback (most recent call last):



 "<stdin>", line 1, in <module>



 "/usr/local/lib/python3.7/site-packages/miio/airhumidifier.py", line 254, in status


properties



 "/usr/local/lib/python3.7/site-packages/miio/device.py", line 286, in send


return self.send(command, parameters, retry_count - 1)



 "/usr/local/lib/python3.7/site-packages/miio/device.py", line 270, in send


raise DeviceError(m.data.value["error"])

miio.exceptions.DeviceError: {'code': -9999, 'message': 'UART timeout'}
