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

Erreur répétitive 'NoneType' object has no attribute 'create_task' #33

Open
jduquennoy opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@jduquennoy
Copy link

Commit installé: d8a210b
Configuration: Standard, mode temps réel activé
Version de HomeAssistant Core: 2024.2.4

Description:
Dans les logs de mon instance HA, j'observe le log ci dessous.
Les données sont bien remontées par l'intégration, y compris les valeurs en temps réelle (la puissance instantanée notamment).
Je n'ai malheureusement pas beaucoup de temps pour analyser le problème de mon côté, mais je suis dispo pour faire des essais ou donner plus d'information si nécessaire.

Logs

2024-02-27 16:38:42.835 ERROR (LinkyTIC for /dev/serial/by-id/usb-Silicon_Labs_LinkyTIC_0001-if00-port0) [custom_components.linkytic.serial_reader] encountered an unexpected exception on the serial thread, catching it to avoid thread crash: 'NoneType' object has no attribute 'create_task'
Traceback (most recent call last):
File "/config/custom_components/linkytic/serial_reader.py", line 151, in run
notif_callback(forced_update)
File "/config/custom_components/linkytic/sensor.py", line 1649, in update_notification
self.schedule_update_ha_state(force_refresh=True)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1199, in schedule_update_ha_state
self.hass.create_task(
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'create_task'
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

1 participant