From a571e4738f1084272203a9e33e583568766a30ae Mon Sep 17 00:00:00 2001 From: Johan Isacsson Date: Thu, 22 Sep 2022 22:41:58 +0200 Subject: [PATCH] Fix tests --- tests/const.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/const.py b/tests/const.py index 4efa192..db73d52 100644 --- a/tests/const.py +++ b/tests/const.py @@ -7,12 +7,12 @@ from custom_components.sunspec.const import CONF_SLAVE_ID MOCK_SETTINGS_PREFIX = { - CONF_ENABLED_MODELS: ["160"], + CONF_ENABLED_MODELS: [160], CONF_PREFIX: "test", CONF_SCAN_INTERVAL: 10, } -MOCK_SETTINGS = {CONF_ENABLED_MODELS: ["103", "160"], CONF_SCAN_INTERVAL: 10} -MOCK_SETTINGS_MM = {CONF_ENABLED_MODELS: ["701"], CONF_SCAN_INTERVAL: 10} +MOCK_SETTINGS = {CONF_ENABLED_MODELS: [103, 160], CONF_SCAN_INTERVAL: 10} +MOCK_SETTINGS_MM = {CONF_ENABLED_MODELS: [701], CONF_SCAN_INTERVAL: 10} MOCK_CONFIG_STEP_1 = {CONF_HOST: "test_host", CONF_PORT: 123, CONF_SLAVE_ID: 1} MOCK_CONFIG = { CONF_HOST: "test_host",