-
- Downloads
Refactor pihole integration (#25837)
* Adds tests for pi_hole integration * Refactor pi_hole component to an integration supporting multiple platforms * Adds mock of Hole dependency * Aborts platform setup when discovery_info is none * Removes use of monitored_conditions * Adds integration setup test * Removes PlatformNotReady check * Adds sensor test * Code review updates * Refactor tests to assert state through hass * Reorder imports
Showing
- homeassistant/components/pi_hole/__init__.py 95 additions, 0 deletionshomeassistant/components/pi_hole/__init__.py
- homeassistant/components/pi_hole/const.py 43 additions, 0 deletionshomeassistant/components/pi_hole/const.py
- homeassistant/components/pi_hole/sensor.py 18 additions, 112 deletionshomeassistant/components/pi_hole/sensor.py
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/pi_hole/__init__.py 1 addition, 0 deletionstests/components/pi_hole/__init__.py
- tests/components/pi_hole/test_init.py 99 additions, 0 deletionstests/components/pi_hole/test_init.py
Loading
Please register or sign in to comment