Migrate Tailscale to new entity naming style (#75018)

This commit is contained in:
Franck Nijhof 2022-07-16 15:21:19 +02:00 committed by GitHub
parent 027cdbdb38
commit 13cea26e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,7 @@ async def test_tailscale_sensors(
assert entry.unique_id == "123457_last_seen"
assert entry.entity_category is None
assert state.state == "2021-11-15T20:37:03+00:00"
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "router Last Seen"
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "router Last seen"
assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.TIMESTAMP
assert ATTR_ICON not in state.attributes
@ -46,7 +46,7 @@ async def test_tailscale_sensors(
assert entry.unique_id == "123457_ip"
assert entry.entity_category == EntityCategory.DIAGNOSTIC
assert state.state == "100.11.11.112"
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "router IP Address"
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "router IP address"
assert state.attributes.get(ATTR_ICON) == "mdi:ip-network"
assert ATTR_DEVICE_CLASS not in state.attributes