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,
|
config=data.config,
|
||||||
name=addon_info.name,
|
name=addon_info.name,
|
||||||
slug=data.addon,
|
slug=data.addon,
|
||||||
uuid=str(data.uuid),
|
uuid=data.uuid.hex,
|
||||||
),
|
),
|
||||||
discovery_key=discovery_flow.DiscoveryKey(
|
discovery_key=discovery_flow.DiscoveryKey(
|
||||||
domain=DOMAIN,
|
domain=DOMAIN,
|
||||||
key=str(data.uuid),
|
key=data.uuid.hex,
|
||||||
version=1,
|
version=1,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -91,7 +91,7 @@ async def test_hassio_discovery_startup(
|
|||||||
},
|
},
|
||||||
name="Mosquitto Test",
|
name="Mosquitto Test",
|
||||||
slug="mosquitto",
|
slug="mosquitto",
|
||||||
uuid=str(uuid),
|
uuid=uuid.hex,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ async def test_hassio_discovery_startup_done(
|
|||||||
},
|
},
|
||||||
name="Mosquitto Test",
|
name="Mosquitto Test",
|
||||||
slug="mosquitto",
|
slug="mosquitto",
|
||||||
uuid=str(uuid),
|
uuid=uuid.hex,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ async def test_hassio_discovery_webhook(
|
|||||||
},
|
},
|
||||||
name="Mosquitto Test",
|
name="Mosquitto Test",
|
||||||
slug="mosquitto",
|
slug="mosquitto",
|
||||||
uuid=str(uuid),
|
uuid=uuid.hex,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ async def test_hassio_rediscover(
|
|||||||
)
|
)
|
||||||
|
|
||||||
expected_context = {
|
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,
|
"source": config_entries.SOURCE_HASSIO,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user