Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 3406467

Browse files
author
Juraj Nyiri
committed
Fix: IndentationError: unexpected indent
1 parent 80dd4c3 commit 3406467

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/rpi_power/sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def update(self):
4242
"""The update method"""
4343
_throttled = open(SYSFILE, 'r').read()[:-1]
4444
_throttled = _throttled[:4]
45+
if _throttled == '0':
4546
self._description = 'Everything is working as intended'
4647
elif _throttled == '1000':
4748
self._description = 'Under-voltage was detected, consider getting a uninterruptible power supply for your Raspberry Pi.'

0 commit comments

Comments
 (0)