Skip to content

Commit

Permalink
fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
raman325 committed Mar 21, 2020
1 parent cc5c232 commit 2e5dbeb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/components/vizio/test_media_player.py
@@ -1,7 +1,7 @@
"""Tests for Vizio config flow."""
from datetime import timedelta
import logging
from typing import Any, Dict
from typing import Any, Dict, Optional
from unittest.mock import call

from asynctest import patch
Expand Down Expand Up @@ -83,7 +83,7 @@


async def _test_setup(
hass: HomeAssistantType, ha_device_class: str, vizio_power_state: bool
hass: HomeAssistantType, ha_device_class: str, vizio_power_state: Optional[bool]
) -> None:
"""Test Vizio Device entity setup."""
if vizio_power_state:
Expand Down Expand Up @@ -141,7 +141,7 @@ async def _test_setup(
async def _test_setup_with_apps(
hass: HomeAssistantType,
device_config: Dict[str, Any],
app: str,
app: Optional[str],
app_config: Dict[str, Any],
) -> None:
"""Test Vizio Device with apps entity setup."""
Expand Down Expand Up @@ -227,7 +227,7 @@ async def _test_service(
hass: HomeAssistantType,
vizio_func_name: str,
ha_service_name: str,
additional_service_data: dict,
additional_service_data: Optional[Dict[str, Any]],
*args,
**kwargs,
) -> None:
Expand Down Expand Up @@ -368,8 +368,8 @@ async def test_options_update(

async def _test_update_availability_switch(
hass: HomeAssistantType,
initial_power_state: bool,
final_power_state: bool,
initial_power_state: Optional[bool],
final_power_state: Optional[bool],
caplog: pytest.fixture,
) -> None:
now = dt_util.utcnow()
Expand Down

0 comments on commit 2e5dbeb

Please sign in to comment.