Closed aqwserf closed 11 months ago
Il faut que j'ajoute le nom de la station et le carburant dans les logs sur lequel ça échoue
tu peux modifier les lignes 168 et 169 de sensor.py comme ceci et redémarrer :
except ValueError as err:
_LOGGER.warning(f"Cannot calculate days for {self._attr_name} since last update: {err}")
Voila le retour:
2023-11-24 14:13:14.557 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Intermarché Cestas E10 between last update: time data '2023-11-22T09:30:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.558 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Intermarché Cestas SP95 between last update: time data '2023-11-22T09:30:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.559 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Intermarché Cestas SP98 between last update: time data '2023-11-22T09:30:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.559 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Intermarché Cestas Gazole between last update: time data '2023-11-22T09:30:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.559 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Esso Alouette E10 between last update: time data '2023-11-24T00:02:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.560 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Esso Alouette SP98 between last update: time data '2023-11-24T00:02:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.560 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Esso Alouette Gazole between last update: time data '2023-11-24T00:02:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.560 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Haut Leveque E10 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.561 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Haut Leveque SP98 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.561 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Haut Leveque Gazole between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.561 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Geant Casino E10 between last update: time data '2023-11-23T08:43:41+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.561 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Geant Casino SP98 between last update: time data '2023-11-23T08:43:41+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.562 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Geant Casino Gazole between last update: time data '2023-11-23T08:43:40+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.562 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Merignac Somme E10 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.563 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Merignac Somme SP98 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.563 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Merignac Somme Gazole between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.564 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Carrefour Merignac E10 between last update: time data '2023-11-23T12:59:59+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.564 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Carrefour Merignac SP95 between last update: time data '2023-11-23T12:59:59+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.564 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Carrefour Merignac SP98 between last update: time data '2023-11-23T12:59:59+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.565 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Carrefour Merignac Gazole between last update: time data '2023-11-23T12:59:58+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.565 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Cap De Bos E10 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.565 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Cap De Bos SP98 between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.565 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Relais Cap De Bos Gazole between last update: time data '2023-11-24T01:01:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.566 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station E.Leclerc La Teste De Buch E10 between last update: time data '2023-11-22T09:10:57+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.566 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station E.Leclerc La Teste De Buch SP95 between last update: time data '2023-11-21T11:08:44+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.567 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station E.Leclerc La Teste De Buch SP98 between last update: time data '2023-11-21T11:08:44+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.567 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station E.Leclerc La Teste De Buch Gazole between last update: time data '2023-11-22T09:10:57+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.567 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station 33470001 E10 between last update: time data '2023-11-22T09:54:33+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.568 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station 33470001 SP98 between last update: time data '2023-11-22T09:54:33+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.568 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station 33470001 Gazole between last update: time data '2023-11-22T09:54:33+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.568 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Super U SP95 between last update: time data '2023-11-16T10:02:46+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.568 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Super U SP98 between last update: time data '2023-11-16T10:02:46+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.569 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Super U Gazole between last update: time data '2023-11-16T10:02:45+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.569 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Leclerc Mios E10 between last update: time data '2023-11-24T02:18:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.569 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Leclerc Mios SP95 between last update: time data '2023-11-24T02:18:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.569 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Leclerc Mios SP98 between last update: time data '2023-11-24T02:18:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
2023-11-24 14:13:14.570 WARNING (MainThread) [custom_components.prix_carburant.sensor] Cannot calculate days for Station Leclerc Mios Gazole between last update: time data '2023-11-24T02:18:00+01:00' does not match format '%Y-%m-%d %H:%M:%S'
je penche pour cette foutue conversion ISO pour les timestamp. J'ai d'ailleurs trouvé ça hyper relou dans les templates ces histoires de conversion de temps...
Je viens de voir que j'ai la même erreur, j'ai l'impression que le format a changé, je vais fixer ça
fixé en 3.1.1
Describe the bug Since a couple of days, I get a lot
Cannot calculate days between last update
, every 30s. I also have an automation to reload the prices every hour. I don't think it's related but here it is:Configuration
Expected behavior Not getting spammed by these warnings
Screenshots If applicable, add screenshots to help explain your problem.
Debug logs