Use ESPHome manufacturer name from device if provided (#80928)

This commit is contained in:
Jesse Hills 2022-10-25 20:15:28 +13:00 committed by GitHub
parent f85a2fb57a
commit 97d31d05f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -307,6 +307,8 @@ def _async_setup_device_registry(
configuration_url = f"http://{entry.data['host']}:{device_info.webserver_port}"
manufacturer = "espressif"
if device_info.manufacturer:
manufacturer = device_info.manufacturer
model = device_info.model
hw_version = None
if device_info.project_name:

View file

@ -3,7 +3,7 @@
"name": "ESPHome",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/esphome",
"requirements": ["aioesphomeapi==11.1.1"],
"requirements": ["aioesphomeapi==11.2.0"],
"zeroconf": ["_esphomelib._tcp.local."],
"dhcp": [{ "registered_devices": true }],
"codeowners": ["@OttoWinter", "@jesserockz"],

View file

@ -153,7 +153,7 @@ aioecowitt==2022.09.3
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==11.1.1
aioesphomeapi==11.2.0
# homeassistant.components.flo
aioflo==2021.11.0

View file

@ -140,7 +140,7 @@ aioecowitt==2022.09.3
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==11.1.1
aioesphomeapi==11.2.0
# homeassistant.components.flo
aioflo==2021.11.0