Skip to content

Commit

Permalink
Accept review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Simon <simon@siku2.io>
  • Loading branch information
frimtec and siku2 authored Dec 10, 2024
1 parent 6e13f4b commit 796917a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/vzug/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 796917a

Please sign in to comment.