Skip to content

Commit d39568b

Browse files
committed
fix switch mock config
1 parent 73b454c commit d39568b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_switch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
from custom_components.ocpp import async_setup_entry
99
from custom_components.ocpp.const import DOMAIN, SWITCH
1010

11-
from .const import DEFAULT_NAME, MOCK_CONFIG
11+
from .const import DEFAULT_NAME, MOCK_CONFIG_DATA
1212

1313

1414
async def test_switch_services(hass):
1515
"""Test switch services."""
1616
# Create a mock entry so we don't have to go through config flow
17-
config_entry = MockConfigEntry(domain=DOMAIN, data=MOCK_CONFIG, entry_id="test")
17+
config_entry = MockConfigEntry(
18+
domain=DOMAIN, data=MOCK_CONFIG_DATA, entry_id="test"
19+
)
1820
assert await async_setup_entry(hass, config_entry)
1921
await hass.async_block_till_done()
2022

0 commit comments

Comments
 (0)