mirror of
https://github.com/esphome/esphome.git
synced 2026-11-09 14:45:57 +00:00
Merge output-channel-key into sx1509-max6956-apply-outputs
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -142,7 +142,7 @@ def final_validate_unique_channel(
|
||||
domain=DOMAIN,
|
||||
platform=platform,
|
||||
keys=(hub_key, channel_key),
|
||||
message="Channel '{1}' of '{0}' is already used by another output",
|
||||
message=f"{channel_key.capitalize()} '{{1}}' of '{{0}}' is already used by another output",
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -107,5 +107,5 @@ def test_hub_channel_key_can_be_renamed(set_core_config: SetCoreConfigCallable)
|
||||
full["output"] = entries
|
||||
set_core_config(PlatformFramework.ESP32_IDF, full_config=full)
|
||||
validate(entries[1])
|
||||
with pytest.raises(cv.Invalid, match="Channel '3' of 'a' is already used"):
|
||||
with pytest.raises(cv.Invalid, match="Pin '3' of 'a' is already used"):
|
||||
validate(entries[2])
|
||||
Reference in new issue
Block a user