1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Revert "Change naming of Shelly entities to correspond with HA guidelines" (#99059)

This commit is contained in:
Shay Levy
2023-08-28 11:42:24 +03:00
committed by GitHub
parent bb545b1c4d
commit b0f3b7bb76
13 changed files with 59 additions and 66 deletions

View File

@@ -58,7 +58,7 @@ async def test_block_get_block_channel_name(mock_block_device, monkeypatch) -> N
mock_block_device,
mock_block_device.blocks[DEVICE_BLOCK_ID],
)
== "Channel 1"
== "Test name channel 1"
)
monkeypatch.setitem(mock_block_device.settings["device"], "type", "SHEM-3")
@@ -68,7 +68,7 @@ async def test_block_get_block_channel_name(mock_block_device, monkeypatch) -> N
mock_block_device,
mock_block_device.blocks[DEVICE_BLOCK_ID],
)
== "Channel A"
== "Test name channel A"
)
monkeypatch.setitem(
@@ -207,7 +207,7 @@ async def test_get_block_input_triggers(mock_block_device, monkeypatch) -> None:
async def test_get_rpc_channel_name(mock_rpc_device) -> None:
"""Test get RPC channel name."""
assert get_rpc_channel_name(mock_rpc_device, "input:0") == "test switch_0"
assert get_rpc_channel_name(mock_rpc_device, "input:3") == "Switch 3"
assert get_rpc_channel_name(mock_rpc_device, "input:3") == "Test name switch_3"
async def test_get_rpc_input_triggers(mock_rpc_device, monkeypatch) -> None: