You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running into an error with this plugin when the carbon intensity of the grid was "very high".
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entitiesawait asyncio.gather(*tasks)File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 522, in _async_add_entityoriginal_icon=entity.icon,File "/config/custom_components/carbon_intensity_uk/sensor.py", line 38, in iconintensity = INTENSITY[index]KeyError: 'very high'
I managed to get this working again by changing the const.py file to include versions of the values without the underscore:
I was running into an error with this plugin when the carbon intensity of the grid was "very high".
I managed to get this working again by changing the
const.py
file to include versions of the values without the underscore:I haven't properly tested this but it seems to be working. It might be possible to delete the
very_low
andvery_high
values.The text was updated successfully, but these errors were encountered: