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

@ -14,7 +14,12 @@ from homeassistant.components.remote import (
SERVICE_LEARN_COMMAND,
SERVICE_SEND_COMMAND,
)
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON
from homeassistant.const import (
ATTR_BATTERY_LEVEL,
ATTR_ENTITY_ID,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
)
from homeassistant.core import HomeAssistant
@ -31,6 +36,7 @@ async def test_ir_transceiver(
assert state
assert state.state == "off"
assert state.attributes[ATTR_BATTERY_LEVEL] == 0
# Test turn on
await hass.services.async_call(