Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NetMeterSensor' object has no attribute 'friendly_name' #35

Open
ostracizado opened this issue Jan 28, 2024 · 3 comments

Comments

@ostracizado
Copy link

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/erse/sensor.py:305
Integration: Entidade Reguladora dos Serviços Energéticos (documentation, issues)
First occurred: 27 January 2024 at 00:00:00 (97 occurrences)
Last logged: 00:00:00

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/erse/sensor.py", line 305, in timer_update
    self.friendly_name,
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'NetMeterSensor' object has no attribute 'friendly_name'
@dgomes
Copy link
Owner

dgomes commented Jan 28, 2024

Podes partilhar a tua configuração ?

@ostracizado
Copy link
Author

Não estou a conseguir replicar o erro; mas suspeito estar relacionado com um utility_sensor que configurei pelo helpers GUI, recentemente, para fazer reset a 26 de cada mês.

Há alguma forma de visualizar a configuração em estilo yaml de tais configurações GUI?

@dgomes
Copy link
Owner

dgomes commented Jan 28, 2024

não... as mesmas ficam num json na pasta /config/.storage/core.config_entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants