Skip to content

Commit 4eb89be

Browse files
Check for source in the correct dictionary
1 parent bfc1c4f commit 4eb89be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/mixergy/tank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def fetch_last_measurement(self):
233233
vacation = False
234234

235235
# Source is only present when vacation is enabled it seems
236-
if "source" in source:
236+
if "source" in current:
237237
source = current["source"]
238238
vacation = source == "Vacation"
239239

0 commit comments

Comments
 (0)