My HA just automatically updated ESPHome over night. When I tried to rebuild one of my devices (that has been working for a number of months and over several ESPHome upgrades) I get an error that UNIT_COUNTS_PER_CUBIC_METER is no longer defined.
When I look at the ‘const.py’ file I can’t see it but there is a UNIT_COUNTS_PER_CUBIC_CENTIMETER definition. (I also did a search for the original definition and I did find an old copy of the const.py file.)
Was the old definition removed by accident when the new one was added?
As ESPHome was updated automatically I didn’t see any ‘change log’ with a ‘breaking change’ notification in it - was one given?
Susan
OK - I have found the entry in the change log (Fix units for SPS30 number concentration sensors by kahrendt · Pull Request #5452 · esphome/esphome · GitHub) but I would argue that it is fair enough to create a new unit for that specific case but why remove somethign that could be used by other devices?
Susan