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 authored and Paulus Schoutsen committed 2019-09-03 16:18:06 -07:00
1 parent 9035efee10
commit 757482ee85
7 files changed
+259 -111

No files matched your search

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