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
Error adding entity sensor.circle_k_miles95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.circle_k_milesplus95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.shell_fuelsave_blyfri_95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.shell_v_power for domain sensor with platform fuelprices_dk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 918, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1368, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/config/custom_components/fuelprices_dk/sensor.py", line 91, in state
return float(self._fuelCompany.getProductPrice(self._productKey))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fuelprices_dk/fuelprices_dk_api.py", line 215, in getProductPrice
return self._products[productKey]["price"]
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'price'
The text was updated successfully, but these errors were encountered:
It is usually Shell that is the problem. Either their website is down or has been changed. If you remove it from your companies list. It should work again. I have no problem at my end (without shell)
It is usually Shell that is the problem. Either their website is down or has been changed. If you remove it from your companies list. It should work again. I have no problem at my end (without shell)
Yeah i know, but out off all the companies i can only get info from OK and Q8
Logger: homeassistant.components.sensor
Kilde: helpers/entity_platform.py:599
integration: Sensor (dokumentation, problemer)
Første forekomst: 13.48.40 (4 forekomster)
Senest logget: 13.48.40
Error adding entity sensor.circle_k_miles95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.circle_k_milesplus95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.shell_fuelsave_blyfri_95 for domain sensor with platform fuelprices_dk
Error adding entity sensor.shell_v_power for domain sensor with platform fuelprices_dk
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 918, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1368, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/config/custom_components/fuelprices_dk/sensor.py", line 91, in state
return float(self._fuelCompany.getProductPrice(self._productKey))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fuelprices_dk/fuelprices_dk_api.py", line 215, in getProductPrice
return self._products[productKey]["price"]
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'price'
The text was updated successfully, but these errors were encountered: