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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user