prixCarburant-home-assistant icon indicating copy to clipboard operation
prixCarburant-home-assistant copied to clipboard

Correction documentation et sensor

Open ryann72 opened this issue 3 years ago • 5 comments

Correction de la documentation Adaptation sensor pour ha 2021.12

ryann72 avatar Jan 20 '22 20:01 ryann72

`Logger: homeassistant.components.sensor Source: custom_components/prixCarburant/sensor.py:73 Integration: Capteur (documentation, issues) First occurred: 00:24:05 (1 occurrences) Last logged: 00:24:05

Error while setting up prixCarburant platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/prixCarburant/sensor.py", line 73, in setup_platform stations = client.extractSpecificStation(list) File "/usr/local/lib/python3.9/site-packages/prixCarburantClient/prixCarburantClient.py", line 163, in extractSpecificStation stationsXML = self.stationsXML AttributeError: 'PrixCarburantClient' object has no attribute 'stationsXML'`

Mick51 avatar Feb 11 '22 23:02 Mick51

`Logger: homeassistant.components.sensor Source: custom_components/prixCarburant/sensor.py:73 Integration: Capteur (documentation, issues) First occurred: 00:24:05 (1 occurrences) Last logged: 00:24:05

Error while setting up prixCarburant platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/prixCarburant/sensor.py", line 73, in setup_platform stations = client.extractSpecificStation(list) File "/usr/local/lib/python3.9/site-packages/prixCarburantClient/prixCarburantClient.py", line 163, in extractSpecificStation stationsXML = self.stationsXML AttributeError: 'PrixCarburantClient' object has no attribute 'stationsXML'`

As tu regardé avec ma version https://github.com/ryann72/prixCarburant-home-assistant

Celle de max est en retard de plusieurs commit

ryann72 avatar Feb 12 '22 09:02 ryann72

Logger: homeassistant.components.sensor Source: custom_components/prixCarburant/sensor.py:73 Integration: Capteur ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22)) First occurred: 00:24:05 (1 occurrences) Last logged: 00:24:05 Error while setting up prixCarburant platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/prixCarburant/sensor.py", line 73, in setup_platform stations = client.extractSpecificStation(list) File "/usr/local/lib/python3.9/site-packages/prixCarburantClient/prixCarburantClient.py", line 163, in extractSpecificStation stationsXML = self.stationsXML AttributeError: 'PrixCarburantClient' object has no attribute 'stationsXML'

As tu regardé avec ma version https://github.com/ryann72/prixCarburant-home-assistant

Celle de max est en retard de plusieurs commit

C'est justement celle que j'utilise, et j'ai eu cette erreur cette nuit, et régulièrement il galère à mettre les prix à jours, toujours des avertissements comme quoi les récupération de prix est trop longue....... Mais je l'ai avec d'autre addon également, quelques chose à changé dans les nouvelles versions de home assistant qui créer des avertissement régulièrement sur cette addon...... 😉

Mick51 avatar Feb 12 '22 09:02 Mick51

Tu es sur quelle version de ha ? J'ai pas encore pris le temps de monter la 2022.02 sur ma configuration.

ryann72 avatar Feb 12 '22 09:02 ryann72

Tu es sur quelle version de ha ? J'ai pas encore pris le temps de monter la 2022.02 sur ma configuration.

J'ai tout mis à jour sur les dernières versions srable en date qui te sont proposées. 😉

Mick51 avatar Feb 12 '22 09:02 Mick51