1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

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
This commit is contained in:
John Luetke
2019-09-03 16:18:06 -07:00
committed by Paulus Schoutsen
parent 9035efee10
commit 757482ee85
7 changed files with 259 additions and 111 deletions

View File

@@ -86,6 +86,7 @@ TEST_REQUIREMENTS = (
"haversine",
"hbmqtt",
"hdate",
"hole",
"holidays",
"home-assistant-frontend",
"homekit[IP]",