Fix mobile app device identifiers (#29173)
This commit is contained in:
1 parent
665613e395
commit
4cfd24a03a
2 files changed
+6
-6
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.helpers import device_registry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -64,6 +66,9 @@ async def test_sensor(hass, create_registrations, webhook_client):
|
||||
updated_entity = hass.states.get("sensor.battery_state")
|
||||
assert updated_entity.state == "123"
|
||||
|
||||
dev_reg = await device_registry.async_get_registry(hass)
|
||||
assert len(dev_reg.devices) == len(create_registrations)
|
||||
|
||||
|
||||
async def test_sensor_must_register(hass, create_registrations, webhook_client):
|
||||
"""Test that sensors must be registered before updating."""
|
||||
|
||||
Reference in new issue
Block a user