mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix aiohttp deprecation warnings (#13240)
* Fix aiohttp deprecation warnings * Fix Ring deprecation warning * Lint
This commit is contained in:
committed by
Pascal Vizeli
parent
a86bf81768
commit
89a19c89a7
@@ -59,7 +59,7 @@ class TestMQTTComponent(unittest.TestCase):
|
||||
"""Helper for recording calls."""
|
||||
self.calls.append(args)
|
||||
|
||||
def test_client_stops_on_home_assistant_start(self):
|
||||
def aiohttp_client_stops_on_home_assistant_start(self):
|
||||
"""Test if client stops on HA stop."""
|
||||
self.hass.bus.fire(EVENT_HOMEASSISTANT_STOP)
|
||||
self.hass.block_till_done()
|
||||
@@ -156,7 +156,7 @@ class TestMQTTCallbacks(unittest.TestCase):
|
||||
"""Helper for recording calls."""
|
||||
self.calls.append(args)
|
||||
|
||||
def test_client_starts_on_home_assistant_mqtt_setup(self):
|
||||
def aiohttp_client_starts_on_home_assistant_mqtt_setup(self):
|
||||
"""Test if client is connected after mqtt init on bootstrap."""
|
||||
self.assertEqual(self.hass.data['mqtt']._mqttc.connect.call_count, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user