Use modern naming for WLED (#100233)

This commit is contained in:
Joost Lekkerkerker
2023-10-06 20:04:44 +02:00
committed by GitHub
parent ed8a372f4e
commit 9ac5bdc832
7 changed files with 42 additions and 42 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import pytest
from wled import WLEDConnectionError
from homeassistant.components import zeroconf
from homeassistant.components.wled.const import CONF_KEEP_MASTER_LIGHT, DOMAIN
from homeassistant.components.wled.const import CONF_KEEP_MAIN_LIGHT, DOMAIN
from homeassistant.config_entries import SOURCE_USER, SOURCE_ZEROCONF
from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME
from homeassistant.core import HomeAssistant
@@ -271,10 +271,10 @@ async def test_options_flow(
result2 = await hass.config_entries.options.async_configure(
result["flow_id"],
user_input={CONF_KEEP_MASTER_LIGHT: True},
user_input={CONF_KEEP_MAIN_LIGHT: True},
)
assert result2.get("type") == FlowResultType.CREATE_ENTRY
assert result2.get("data") == {
CONF_KEEP_MASTER_LIGHT: True,
CONF_KEEP_MAIN_LIGHT: True,
}
+2 -2
View File
@@ -15,7 +15,7 @@ from homeassistant.components.light import (
ATTR_TRANSITION,
DOMAIN as LIGHT_DOMAIN,
)
from homeassistant.components.wled.const import CONF_KEEP_MASTER_LIGHT, SCAN_INTERVAL
from homeassistant.components.wled.const import CONF_KEEP_MAIN_LIGHT, SCAN_INTERVAL
from homeassistant.const import (
ATTR_ENTITY_ID,
ATTR_ICON,
@@ -355,7 +355,7 @@ async def test_single_segment_with_keep_main_light(
assert not hass.states.get("light.wled_rgb_light_main")
hass.config_entries.async_update_entry(
init_integration, options={CONF_KEEP_MASTER_LIGHT: True}
init_integration, options={CONF_KEEP_MAIN_LIGHT: True}
)
await hass.async_block_till_done()