Add unique id for Scrape config entry entities (#82508)

* scrape unique id

* fix uuid str

* add back UoM
This commit is contained in:
G Johansson 2022-11-24 21:12:47 +01:00 committed by GitHub
parent e4fbbdfa05
commit a63581b5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 2 deletions

View file

@ -414,3 +414,8 @@ async def test_setup_config_entry(
state = hass.states.get("sensor.current_version")
assert state.state == "Current Version: 2021.12.10"
entity_reg = er.async_get(hass)
entity = entity_reg.async_get("sensor.current_version")
assert entity.unique_id == "3699ef88-69e6-11ed-a1eb-0242ac120002"