mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Use modern naming for WLED (#100233)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user