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

device_state_attributes

Open ckd77 opened this issue 3 years ago • 2 comments

Bonjour!

J'avais peu être cette erreur avant la mise a jour de HA en 2021.12.0 mais cette erreur remonte pas mal de fois dans les logs. Pour le moment le plugins fonctionne... ;)

Logger: homeassistant.helpers.entity Source: helpers/entity.py:549 First occurred: 10:38:30 (4 occurrences) Last logged: 10:38:30

Entity sensor.prixcarburant_77130005 (<class 'custom_components.prixCarburant.sensor.PrixCarburant'>) implements device_state_attributes. Please report it to the custom component author. Entity sensor.prixcarburant_77130006 (<class 'custom_components.prixCarburant.sensor.PrixCarburant'>) implements device_state_attributes. Please report it to the custom component author. Entity sensor.prixcarburant_77130008 (<class 'custom_components.prixCarburant.sensor.PrixCarburant'>) implements device_state_attributes. Please report it to the custom component author. Entity sensor.prixcarburant_77250006 (<class 'custom_components.prixCarburant.sensor.PrixCarburant'>) implements device_state_attributes. Please report it to the custom component author.

ckd77 avatar Dec 12 '21 09:12 ckd77

Bonjour pour résoudre l'erreur en attendant un correctif dans le fichier sensor.py a la ligne 122 il faut modifier ainsi def device_state_attributes(self): par def extra_state_attributes(self):

Hydci avatar Dec 27 '21 10:12 Hydci

Je viens de livrer le correctif il est dispo sous hacs

ryann72 avatar Jan 09 '22 13:01 ryann72