After updating to version 118.4 my Emulated Hue is no longer working. I am getting the following error in the log.
2020-12-01 11:30:48 ERROR (MainThread) [aiohttp.server] 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/src/homeassistant/homeassistant/components/http/view.py”, line 126, in handle
result = handler(request, **request.match_info)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 215, in get
return self.json(create_list_of_entities(self.config, request))
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 819, in create_list_of_entities
json_response[number] = entity_to_json(config, entity)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 701, in entity_to_json
state = get_entity_state(config, entity)
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 612, in get_entity_state
data[STATE_BRIGHTNESS] = hass_to_hue_brightness(
File “/usr/src/homeassistant/homeassistant/components/emulated_hue/hue_api.py”, line 831, in hass_to_hue_brightness
return max(1, round((value / 255) * HUE_API_STATE_BRI_MAX))
TypeError: unsupported operand type(s) for /: ‘NoneType’ and ‘int’
Any suggestions? Thanks.