Move imports to top for monoprice (#29516)

* Move imports to top for monoprice

* Format test with black
This commit is contained in:
springstan authored and Franck Nijhof committed 2019-12-05 19:16:15 +01:00
1 parent 98d2eadb76
commit 4e7b9eaed0
2 files changed
+8 -5

No files matched your search

@@ -174,7 +174,10 @@ class TestMonopriceMediaPlayer(unittest.TestCase):
self.hass = tests.common.get_test_home_assistant()
self.hass.start()
# Note, source dictionary is unsorted!
with mock.patch("pymonoprice.get_monoprice", new=lambda *a: self.monoprice):
with mock.patch(
"homeassistant.components.monoprice.media_player.get_monoprice",
new=lambda *a: self.monoprice,
):
setup_platform(
self.hass,
{