From 8369126f0ca22f57ba8152366a86477aa4c4681d Mon Sep 17 00:00:00 2001 From: Willem-Jan van Rootselaar Date: Wed, 11 Feb 2026 10:34:46 +0100 Subject: [PATCH] refactor: simplify device attribute assignment in print_device_info --- examples/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/control.py b/examples/control.py index 50d31999..edb6c801 100644 --- a/examples/control.py +++ b/examples/control.py @@ -177,8 +177,8 @@ async def print_device_info(device: Device, info: Info) -> None: ) attributes = { - "Device Name": device.name if device.name else "N/A", - "Version": device.version if device.version else "N/A", + "Device Name": device.name or "N/A", + "Version": device.version or "N/A", "Device Identification": device_identification, } print_attributes("Device Information", attributes)