Fix more deprecation warnings (#7778)
* Remove setting up an hbmqtt broker * Don't pass loop to web.Application in tests * Use .query instead of deprecated .GET for aiohttp requests * Fix closing file resource * Do not use asyncio mark * Notify.html5 - PyJWT: Use options to disable verify * Yamaha: Test was still using deprecated ip * Remove pytest-asyncio
This commit is contained in:
parent
910020bc5f
commit
e68bd0457c
20 changed files with 22 additions and 26 deletions
|
@ -250,7 +250,7 @@ def mock_http_component_app(hass, api_password=None):
|
|||
"""Create an aiohttp.web.Application instance for testing."""
|
||||
if 'http' not in hass.config.components:
|
||||
mock_http_component(hass, api_password)
|
||||
app = web.Application(middlewares=[auth_middleware], loop=hass.loop)
|
||||
app = web.Application(middlewares=[auth_middleware])
|
||||
app['hass'] = hass
|
||||
app[KEY_USE_X_FORWARDED_FOR] = False
|
||||
app[KEY_BANS_ENABLED] = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue