Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add device condition for water heater #28913
Adds basic device condition support for water_heater integration - off, eco, electric, performance, high demand, heat pump, gas
Related issue (if applicable): fixes #27007
If user exposed functionality or configuration variables are added/changed:
If the code does not interact with devices:
I was getting a run mypy error for /water_heater/device_condition.py:51 "Need type annotation for 'conditions' (hint: "conditions: List = ..."). I looked through some previous device condition PR's and changed "conditions = " to "conditions: List[dict] = ". It seems to work but I'm not sure if it's the correct way to fix the error.