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]",