Fix mysensors battery level attribute (#101868)
This commit is contained in:
parent
8e3c665fd3
commit
52067dbfe5
10 changed files with 43 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue