Fix mysensors battery level attribute (#101868)
This commit is contained in:
parent
8e3c665fd3
commit
52067dbfe5
10 changed files with 43 additions and 7 deletions
|
@ -12,7 +12,7 @@ from homeassistant.components.text import (
|
|||
DOMAIN as TEXT_DOMAIN,
|
||||
SERVICE_SET_VALUE,
|
||||
)
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_ENTITY_ID
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@ async def test_text_node(
|
|||
|
||||
assert state
|
||||
assert state.state == "test"
|
||||
assert state.attributes[ATTR_BATTERY_LEVEL] == 0
|
||||
|
||||
await hass.services.async_call(
|
||||
TEXT_DOMAIN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue