Skip to content

Commit 3fb87e2

Browse files
committed
Fix alert_reason type
1 parent 7713c53 commit 3fb87e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_max1704x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def active_alert(self) -> bool:
180180
return self._alert_status
181181

182182
@property
183-
def alert_reason(self) -> bool:
183+
def alert_reason(self) -> int:
184184
"""The 7 bits of alert-status that can be checked at once for flags"""
185185
return self._status & 0x3F
186186

0 commit comments

Comments
 (0)