Fix missing device name with legacy flux_led discovery (#62785)

This commit is contained in:
J. Nick Koston 2022-01-06 19:43:22 -10:00 committed by GitHub
parent ff3b7489ec
commit ad68d0795e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 215 additions and 39 deletions

View file

@ -24,7 +24,7 @@ def _async_device_info(
version_num = device.version_num
if minor_version := entry.data.get(CONF_MINOR_VERSION):
sw_version = version_num + int(hex(minor_version)[2:]) / 100
sw_version_str = f"{sw_version:0.3f}"
sw_version_str = f"{sw_version:0.2f}"
else:
sw_version_str = str(device.version_num)
return DeviceInfo(