Adding compatibility for Python 3.14#484
Conversation
Fix Python 3.14 compatibility
|
@JoDehli Awesome work btw! Just added my appreciation on buymeacoffee.com/JoDehli |
|
@schluchc thanks for your support. I use python 3.14 for development. I never got a error for the syntax. Are you sure it is not python3.15 |
To be honest, I haven't understood why it stopped working. It was a power outage that caused an update on my HA which then caused this error. I'm running Python 3.14.2 in the container that runs HA. |
|
This seems like a bug introduced here: d8be321#diff-0f17abc8d5b9ce46fdcb6f936e90be32ab1332c3480765490ba503e7d73dfa28L19-L648 Not sure, however, how it has not failed sooner... |
|
should be fixed in the newest release. |
When Python is upgraded from Python 3.12 to Pytohn 3.14 (not sure at what step exactly), it seems that some Python 2 syntax which was tolerated earlier is not supported anymore. Particularly, comma separated exceptions without parantheses:
except LoxoneConnectionError, LoxoneTokenError, LoxoneConnectionClosedOk:which by now should be
This merge request fixes those issues and creates compatibility to Python 3.14.
Specific failure HomeAssistant drops: