Closed HeikoTietze closed 1 month ago
Hello @HeikoTietze, Sorry for that..I guess I've introduced some python 3.12 syntax there. If I'm not wrong, removing the [_R] typing (together with any occurrencr of _R) should be compatible (it's just type hinting)..I'll promptly check/fix for the next (pre)release.
alpha.1 spams this (and returns "Unavailable" for the entities)
2024-10-15 19:41:21.845 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback EntityManager.schedule_async_callback.
Aww yeah...I don't have a testing facility in place for older HA core versions so it looks like that call in HA core is different (I'm sure the last parameter 'eager_start' was added only in recent months)
Which HA core version are you on?
Core 2023.11.3 Frontend 20231030.2 I'm running it on a RasPi 4b with DietPi OS, being bound to their update schedule. Failed to set-up HA OS, or to install some needed plugin. Don't remember what it was.
I've tried patching specifically that api call but I cannot really thoroughly test it anymore since many things have changed so far in core api and my test suite doesn't match well with older versions... Corssfingers and hope for the best, I'm (almost) confident this specific compatibility issue has been fixed but I'm scared many other subtleties could not be verified.
This works! Thanks a lot.
File "/mnt/dietpi_userdata/homeassistant/custom_components/meross_lan/helpers/manager.py", line 177 def async_create_task[ ^ SyntaxError: expected '(' 2024-10-15 16:11:01.216 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration meross_lan: Unable to import component: Exception importing custom_components.meross_lan
And changing this into def async_create_task[_R](... does not help.
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux