Fix mysensors battery level attribute (#101868)

This commit is contained in:
Martin Hjelmare 2023-10-12 13:01:08 +02:00 committed by GitHub
parent 8e3c665fd3
commit 52067dbfe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 43 additions and 7 deletions

View file

@ -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,