mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Revert unintended OpenUV unique ID change (#78691)
This commit is contained in:
parent
d4181aa911
commit
a282e41d68
@ -354,10 +354,11 @@ class OpenUvEntity(Entity):
|
|||||||
|
|
||||||
def __init__(self, openuv: OpenUV, description: EntityDescription) -> None:
|
def __init__(self, openuv: OpenUV, description: EntityDescription) -> None:
|
||||||
"""Initialize."""
|
"""Initialize."""
|
||||||
coordinates = f"{openuv.client.latitude}, {openuv.client.longitude}"
|
|
||||||
self._attr_extra_state_attributes = {}
|
self._attr_extra_state_attributes = {}
|
||||||
self._attr_should_poll = False
|
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.entity_description = description
|
||||||
self.openuv = openuv
|
self.openuv = openuv
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user