Add icon translations to Litterrobot (#111899)
This commit is contained in:
parent
f0be33fc6a
commit
e43c62af1e
6 changed files with 46 additions and 17 deletions
|
@ -4,7 +4,7 @@ from unittest.mock import MagicMock
|
|||
from freezegun import freeze_time
|
||||
|
||||
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
|
||||
from homeassistant.const import ATTR_ENTITY_ID, ATTR_ICON, STATE_UNKNOWN, EntityCategory
|
||||
from homeassistant.const import ATTR_ENTITY_ID, STATE_UNKNOWN, EntityCategory
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
|
@ -21,7 +21,6 @@ async def test_button(
|
|||
|
||||
state = hass.states.get(BUTTON_ENTITY)
|
||||
assert state
|
||||
assert state.attributes.get(ATTR_ICON) == "mdi:delete-variant"
|
||||
assert state.state == STATE_UNKNOWN
|
||||
|
||||
entry = entity_registry.async_get(BUTTON_ENTITY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue