Skip to content

Commit 891c085

Browse files
committed
change psm_value() return type to int, and make it a property
1 parent 6be1d18 commit 891c085

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_veml7700.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ def wait_autolux(self, wait_time: float) -> None:
387387
actual_wait_time = max(minimum_wait_time, wait_time)
388388
time.sleep(actual_wait_time)
389389

390-
def psm_value(self) -> float:
390+
@property
391+
def psm_value(self) -> int:
391392
"""Power saving mode value in integer form. Used for calculating refresh time."""
392393
psm = self.light_psm
393394
return self.psm_values[psm]

0 commit comments

Comments
 (0)