diff --git a/custom_components/vzug/sensor.py b/custom_components/vzug/sensor.py index 3e843bf..4fe04e3 100644 --- a/custom_components/vzug/sensor.py +++ b/custom_components/vzug/sensor.py @@ -124,8 +124,8 @@ class Program(StateBase): @property def native_value(self) -> StateType | date | datetime | Decimal: device = self.coordinator.data.device - if device.get("Program"): - return device.get("Program") + if program := device.get("Program"): + return program elif device.get("Inactive") == "true": return "standby" else: