mirror of
https://github.com/home-assistant/core.git
synced 2025-11-11 20:10:12 +00:00
Fix missing device name with legacy flux_led discovery (#62785)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user