Fix mysensors battery level attribute (#101868)
This commit is contained in:
parent
8e3c665fd3
commit
52067dbfe5
10 changed files with 43 additions and 7 deletions
|
@ -19,7 +19,7 @@ from homeassistant.components.cover import (
|
|||
STATE_OPEN,
|
||||
STATE_OPENING,
|
||||
)
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_ENTITY_ID
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
|
@ -37,6 +37,7 @@ async def test_cover_node_percentage(
|
|||
assert state
|
||||
assert state.state == STATE_CLOSED
|
||||
assert state.attributes[ATTR_CURRENT_POSITION] == 0
|
||||
assert state.attributes[ATTR_BATTERY_LEVEL] == 0
|
||||
|
||||
await hass.services.async_call(
|
||||
COVER_DOMAIN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue