mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix stringification of discovered hassio uuid (#129797)
This commit is contained in:
parent
1ff0efc97b
commit
b1c9f83952
@ -131,11 +131,11 @@ class HassIODiscovery(HomeAssistantView):
|
||||
config=data.config,
|
||||
name=addon_info.name,
|
||||
slug=data.addon,
|
||||
uuid=str(data.uuid),
|
||||
uuid=data.uuid.hex,
|
||||
),
|
||||
discovery_key=discovery_flow.DiscoveryKey(
|
||||
domain=DOMAIN,
|
||||
key=str(data.uuid),
|
||||
key=data.uuid.hex,
|
||||
version=1,
|
||||
),
|
||||
)
|
||||
|
@ -91,7 +91,7 @@ async def test_hassio_discovery_startup(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=str(uuid),
|
||||
uuid=uuid.hex,
|
||||
)
|
||||
)
|
||||
|
||||
@ -153,7 +153,7 @@ async def test_hassio_discovery_startup_done(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=str(uuid),
|
||||
uuid=uuid.hex,
|
||||
)
|
||||
)
|
||||
|
||||
@ -203,7 +203,7 @@ async def test_hassio_discovery_webhook(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=str(uuid),
|
||||
uuid=uuid.hex,
|
||||
)
|
||||
)
|
||||
|
||||
@ -286,7 +286,7 @@ async def test_hassio_rediscover(
|
||||
)
|
||||
|
||||
expected_context = {
|
||||
"discovery_key": DiscoveryKey(domain="hassio", key=str(uuid), version=1),
|
||||
"discovery_key": DiscoveryKey(domain="hassio", key=uuid.hex, version=1),
|
||||
"source": config_entries.SOURCE_HASSIO,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user