From c3a55e7d8283106c1c4eb5acd580393a3a56116d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 25 Jan 2017 18:46:37 +0100 Subject: [PATCH] Fix upc lint error (#5554) --- homeassistant/components/device_tracker/upc_connect.py | 2 +- tests/test_util/aiohttp.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/device_tracker/upc_connect.py b/homeassistant/components/device_tracker/upc_connect.py index 5de412f05bc..a8d39baed57 100644 --- a/homeassistant/components/device_tracker/upc_connect.py +++ b/homeassistant/components/device_tracker/upc_connect.py @@ -77,7 +77,7 @@ class UPCDeviceScanner(DeviceScanner): finally: self.websession.detach() - hass.buss.async_listen_once( + hass.bus.async_listen_once( EVENT_HOMEASSISTANT_STOP, async_logout) @asyncio.coroutine diff --git a/tests/test_util/aiohttp.py b/tests/test_util/aiohttp.py index 7f46f11166d..afe2f626de7 100644 --- a/tests/test_util/aiohttp.py +++ b/tests/test_util/aiohttp.py @@ -17,8 +17,6 @@ class AiohttpClientMocker: self._cookies = {} self.mock_calls = [] - self.cookie_jar = mock.MagicMock() - def request(self, method, url, *, auth=None, status=200,