1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Revert "Adjust D-Link entity naming" (#86936)

This commit is contained in:
Franck Nijhof
2023-01-30 10:56:56 +01:00
committed by GitHub
parent 709d1cb8af
commit 9ac8f9aa37
3 changed files with 11 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ async def test_switch_state(
await setup_integration()
entity_id = "switch.mock_title"
entity_id = "switch.mock_title_switch"
state = hass.states.get(entity_id)
assert state.state == STATE_OFF
assert state.attributes["total_consumption"] == 1040.0
@@ -71,7 +71,7 @@ async def test_switch_no_value(
"""Test we handle 'N/A' being passed by the pypi package."""
await setup_integration_legacy()
state = hass.states.get("switch.mock_title")
state = hass.states.get("switch.mock_title_switch")
assert state.state == STATE_OFF
assert state.attributes["total_consumption"] is None
assert state.attributes["temperature"] is None