Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Jan 4, 2022
1 parent fd82a59 commit 870e282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/integration_blueprint/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def api_wrapper(self, method: str, url: str, data=None, headers=None) -> d
if headers is None:
headers = {}
try:
async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()):
async with async_timeout.timeout(TIMEOUT):
if method == "get": # pylint: disable=no-else-return
response = await self._session.get(url, headers=headers)
return await response.json()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .const import MOCK_CONFIG


async def test_switch_services(hass: HomeAssistant):
async def test_switch_services(hass: HomeAssistant, bypass_get_data):
"""Test switch services."""
# Create a mock entry so we don't have to go through config flow
config_entry = MockConfigEntry(domain=DOMAIN, data=MOCK_CONFIG, entry_id="test")
Expand Down

0 comments on commit 870e282

Please sign in to comment.