I’m starting to develop my own integration and decided to use IPP printing as the example code to start from because my integration will also obtain the sensor values from a REST call.
I notice that the syntax of the conflig_flow.py example contains parameters like:
but when I copy exactly the same code into my own config_flow.py the compiler raises syntax errors related with python version 3.9 not supporting that.
Surprisingly, the code from IPP does not raise any error!
Also the python version in code and in home assistant is 3.9 so I don’t know how is possible for the IPP integration to use features that are available from version 3.10
Thank you for your response. It is true the pipe ‘|’ character is supported in python 3.10. I don’t understand why the IPP integration is using it while the python version in the production environment is 3.9.9 and the python version in the development environment is 3.9.10
I’m not an expert in python, but is very confusing and I don’t see a clear explanation why the IPP source code is using features that are not supported but it works for them and don’t work for my own code.