-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: refactor climate.py #614
base: main
Are you sure you want to change the base?
Conversation
Maybe the title should be refractor, not refacor? |
浴霸的模式显示为 Climate Entity 的 HAVC mode,根据 Home Assistant 文档 定义,HAVC model 只能使用内置的几个选项,不可添加自定义选项。 |
|
Why
Thermostat, heater, bath heater needs to be added as the climate entity. However, the previous climate.py has many repetitive codes. This PR refactors climate.py by setting several base classes.
Added
Supporting thermostat and ptc bath heater.
Test
Self-tested with some limited model.