File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
tests/components/lg_netcast Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1- """The tests for LG NEtcast device triggers."""
1+ """The tests for LG Netcast device triggers."""
2+
3+ from collections .abc import Generator
4+ from unittest .mock import patch
25
36import pytest
47
1922from tests .common import MockConfigEntry , async_get_device_automations
2023
2124
25+ @pytest .fixture (autouse = True )
26+ def mock_lg_netcast () -> Generator [None ]:
27+ """Mock LG Netcast library."""
28+ with patch ("homeassistant.components.lg_netcast.LgNetCastClient" ):
29+ yield
30+
31+
2232async def test_get_triggers (
2333 hass : HomeAssistant , device_registry : dr .DeviceRegistry
2434) -> None :
Original file line number Diff line number Diff line change 11"""The tests for LG Netcast device triggers."""
22
3+ from collections .abc import Generator
34from unittest .mock import patch
45
56import pytest
1718from tests .common import MockEntity , MockEntityPlatform
1819
1920
21+ @pytest .fixture (autouse = True )
22+ def mock_lg_netcast () -> Generator [None ]:
23+ """Mock LG Netcast library."""
24+ with patch ("homeassistant.components.lg_netcast.LgNetCastClient" ):
25+ yield
26+
27+
2028async def test_lg_netcast_turn_on_trigger_device_id (
2129 hass : HomeAssistant ,
2230 service_calls : list [ServiceCall ],
You can’t perform that action at this time.
0 commit comments