Improve aiohttp default clientsession close with connector (#5208)

This commit is contained in:
Pascal Vizeli 2017-01-07 21:11:19 +01:00 committed by GitHub
parent 81922b88a2
commit ca4a857532
2 changed files with 5 additions and 3 deletions

View file

@ -284,8 +284,7 @@ class TestMediaPlayerWeb(unittest.TestCase):
def get(self, url):
return MockResponse()
@asyncio.coroutine
def close(self):
def detach(self):
pass
self.hass.data[DATA_CLIENTSESSION] = MockWebsession()