-
- Downloads
Add Huum integration (#106420)
* Add Huum integration * Use DeviceInfo instead of name property for huum climate * Simplify entry setup for huum climate entry * Don’t take status as attribute for huum climate init * Remove unused import * Set unique id as entity id in huum init * Remove unused import for huum climate * Use entry ID as unique ID for device entity * Remove extra newline in huum climate * Upgrade pyhuum to 0.7.4 This version no longer users Pydantic * Parameterize error huum tests * Update all requirements after pyhuum upgrade * Use Huum specific naming for ConfigFlow * Use constants for username and password in huum config flow * Use constants for temperature units * Fix typing and pylint issues * Update pyhuum to 0.7.5 * Use correct enums for data entry flow in Huum tests * Remove test for non-thrown CannotConnect in huum flow tests * Refactor failure config test to also test a successful flow after failure * Fix ruff-format issues * Move _status outside of __init__ and type it * Type temperature argument for _turn_on in huum climate * Use constants for auth in huum config flow test * Refactor validate_into into a inline call in huum config flow * Refactor current and target temperature to be able to return None values * Remove unused huum exceptions * Flip if-statment in async_step_user flow setup to simplify code * Change current and target temperature to be more future proof * Log exception instead of error * Use custom pyhuum exceptions * Add checks for duplicate entries * Use min temp if no target temp has been fetched yet when heating huum * Fix tests so that mock config entry also include username and password * Fix ruff styling issues I don’t know why it keeps doing this. I run `ruff` locally, and then it does not complain, but CI must be doing something else here. * Remove unneded setting of unique id * Update requirements * Refactor temperature setting to support settings target temparature properly
Showing
- .coveragerc 2 additions, 0 deletions.coveragerc
- CODEOWNERS 2 additions, 0 deletionsCODEOWNERS
- homeassistant/components/huum/__init__.py 46 additions, 0 deletionshomeassistant/components/huum/__init__.py
- homeassistant/components/huum/climate.py 128 additions, 0 deletionshomeassistant/components/huum/climate.py
- homeassistant/components/huum/config_flow.py 63 additions, 0 deletionshomeassistant/components/huum/config_flow.py
- homeassistant/components/huum/const.py 7 additions, 0 deletionshomeassistant/components/huum/const.py
- homeassistant/components/huum/manifest.json 9 additions, 0 deletionshomeassistant/components/huum/manifest.json
- homeassistant/components/huum/strings.json 22 additions, 0 deletionshomeassistant/components/huum/strings.json
- homeassistant/generated/config_flows.py 1 addition, 0 deletionshomeassistant/generated/config_flows.py
- homeassistant/generated/integrations.json 6 additions, 0 deletionshomeassistant/generated/integrations.json
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- tests/components/huum/__init__.py 1 addition, 0 deletionstests/components/huum/__init__.py
- tests/components/huum/test_config_flow.py 135 additions, 0 deletionstests/components/huum/test_config_flow.py
Loading
Please register or sign in to comment