mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Stringify discovered hassio uuid (#129572)
* Stringify discovered hassio uuid * Correct DiscoveryKey * Adjust tests
This commit is contained in:
parent
60d3c9342d
commit
8eaec56c6b
@ -130,11 +130,11 @@ class HassIODiscovery(HomeAssistantView):
|
||||
config=data.config,
|
||||
name=addon_info.name,
|
||||
slug=data.addon,
|
||||
uuid=data.uuid,
|
||||
uuid=str(data.uuid),
|
||||
),
|
||||
discovery_key=discovery_flow.DiscoveryKey(
|
||||
domain=DOMAIN,
|
||||
key=data.uuid,
|
||||
key=str(data.uuid),
|
||||
version=1,
|
||||
),
|
||||
)
|
||||
|
@ -91,7 +91,7 @@ async def test_hassio_discovery_startup(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=uuid,
|
||||
uuid=str(uuid),
|
||||
)
|
||||
)
|
||||
|
||||
@ -153,7 +153,7 @@ async def test_hassio_discovery_startup_done(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=uuid,
|
||||
uuid=str(uuid),
|
||||
)
|
||||
)
|
||||
|
||||
@ -203,7 +203,7 @@ async def test_hassio_discovery_webhook(
|
||||
},
|
||||
name="Mosquitto Test",
|
||||
slug="mosquitto",
|
||||
uuid=uuid,
|
||||
uuid=str(uuid),
|
||||
)
|
||||
)
|
||||
|
||||
@ -283,7 +283,7 @@ async def test_hassio_rediscover(
|
||||
)
|
||||
|
||||
expected_context = {
|
||||
"discovery_key": DiscoveryKey(domain="hassio", key=uuid, version=1),
|
||||
"discovery_key": DiscoveryKey(domain="hassio", key=str(uuid), version=1),
|
||||
"source": config_entries.SOURCE_HASSIO,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user