Closed tomaszduda23 closed 6 months ago
Darn! What is ESPHome's python support policy? 3.9 is EOL in about a year, do they support right up until EOL and then remove support?
https://devguide.python.org/versions/#python-release-cycle
Supporting 3.9 would involved replacing every "Union type" with Union[]
instead of |
. Because mypy is in place, the linting tests should cover this well.
Looks there may be an easy fix: https://stackoverflow.com/questions/76579085/python-3-9-use-or-operator-for-union-types
OK, getting support at smp
was the heavy lift, updating smpclient shouldn't be too bad: https://github.com/JPHutchins/smp/pull/16
I'm working on integration of https://github.com/esphome/esphome/pull/6075. When I try to build esphome with python 3.9 I get following error.
minimum version of python for esphome is 3.9. Could you please consider to support python 3.9 also? I'm not sure how many changes it would required.