Revert unintended OpenUV unique ID change (#78691)

pull/78085/head^2
Aaron Bach 2022-09-18 09:24:13 -06:00 committed by GitHub
parent d4181aa911
commit a282e41d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -354,10 +354,11 @@ class OpenUvEntity(Entity):
def __init__(self, openuv: OpenUV, description: EntityDescription) -> None:
"""Initialize."""
coordinates = f"{openuv.client.latitude}, {openuv.client.longitude}"
self._attr_extra_state_attributes = {}
self._attr_should_poll = False
self._attr_unique_id = f"{coordinates}_{description.key}"
self._attr_unique_id = (
f"{openuv.client.latitude}_{openuv.client.longitude}_{description.key}"
)
self.entity_description = description
self.openuv = openuv