Use monitor name for uptimerobot device registry (#54456)

This commit is contained in:
Joakim Sørensen 2021-08-11 11:27:41 +02:00 committed by GitHub
parent 2d669a4613
commit 2f5c3c08ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -150,6 +150,7 @@ async def test_device_management(hass: HomeAssistant):
assert len(devices) == 1
assert devices[0].identifiers == {(DOMAIN, "1234")}
assert devices[0].name == "Test monitor"
assert hass.states.get(UPTIMEROBOT_TEST_ENTITY).state == STATE_ON
assert hass.states.get(f"{UPTIMEROBOT_TEST_ENTITY}_2") is None