Add unique id for Scrape config entry entities (#82508)
* scrape unique id * fix uuid str * add back UoM
This commit is contained in:
parent
e4fbbdfa05
commit
a63581b5c8
5 changed files with 35 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue