We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b454c commit d39568bCopy full SHA for d39568b
tests/test_switch.py
@@ -8,13 +8,15 @@
8
from custom_components.ocpp import async_setup_entry
9
from custom_components.ocpp.const import DOMAIN, SWITCH
10
11
-from .const import DEFAULT_NAME, MOCK_CONFIG
+from .const import DEFAULT_NAME, MOCK_CONFIG_DATA
12
13
14
async def test_switch_services(hass):
15
"""Test switch services."""
16
# 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")
+ config_entry = MockConfigEntry(
18
+ domain=DOMAIN, data=MOCK_CONFIG_DATA, entry_id="test"
19
+ )
20
assert await async_setup_entry(hass, config_entry)
21
await hass.async_block_till_done()
22
0 commit comments