Hello Python 3.5 (#12610)

* Hello Python 3.5

* Fix test

* Fix tests

* Fix never awaited block till done warnings
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-02-22 23:22:27 -08:00
1 parent 156206dfee
commit 6ee3c1b3e5
10 files changed
+36 -56

No files matched your search

+3 -3
View File
@@ -165,7 +165,7 @@ class TestRecorderPurge(unittest.TestCase):
# run purge method - no service data, use defaults
self.hass.services.call('recorder', 'purge')
self.hass.async_block_till_done()
self.hass.block_till_done()
# Small wait for recorder thread
self.hass.data[DATA_INSTANCE].block_till_done()
@@ -177,7 +177,7 @@ class TestRecorderPurge(unittest.TestCase):
# run purge method - correct service data
self.hass.services.call('recorder', 'purge',
service_data=service_data)
self.hass.async_block_till_done()
self.hass.block_till_done()
# Small wait for recorder thread
self.hass.data[DATA_INSTANCE].block_till_done()
@@ -203,6 +203,6 @@ class TestRecorderPurge(unittest.TestCase):
self.assertFalse(self.hass.data[DATA_INSTANCE].did_vacuum)
self.hass.services.call('recorder', 'purge',
service_data=service_data)
self.hass.async_block_till_done()
self.hass.block_till_done()
self.hass.data[DATA_INSTANCE].block_till_done()
self.assertTrue(self.hass.data[DATA_INSTANCE].did_vacuum)