1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add serial number to the list of discovered devices (#153448)

This commit is contained in:
Ståle Storø Hauknes
2025-10-02 19:25:19 +02:00
committed by GitHub
parent f9f61b8da7
commit a2a067a81c
2 changed files with 3 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ class AirthingsConfigFlow(ConfigFlow, domain=DOMAIN):
return self.async_abort(reason="no_devices_found")
titles = {
address: discovery.device.name
address: get_name(discovery.device)
for (address, discovery) in self._discovered_devices.items()
}
return self.async_show_form(

View File

@@ -136,7 +136,7 @@ async def test_user_setup(hass: HomeAssistant) -> None:
schema = result["data_schema"].schema
assert schema.get(CONF_ADDRESS).container == {
"cc:cc:cc:cc:cc:cc": "Airthings Wave Plus"
"cc:cc:cc:cc:cc:cc": "Airthings Wave Plus (123456)"
}
with patch(
@@ -186,7 +186,7 @@ async def test_user_setup_replaces_ignored_device(hass: HomeAssistant) -> None:
schema = result["data_schema"].schema
assert schema.get(CONF_ADDRESS).container == {
"cc:cc:cc:cc:cc:cc": "Airthings Wave Plus"
"cc:cc:cc:cc:cc:cc": "Airthings Wave Plus (123456)"
}
with patch(