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'
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'