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

Commit 8641056

Browse files
authored
Merge pull request #26 from JurajNyiri/master
Fix: IndentationError: unexpected indent
2 parents 80dd4c3 + b92482b commit 8641056

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/rpi_power/sensor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import homeassistant.helpers.config_validation as cv
99
from homeassistant.components.sensor import (PLATFORM_SCHEMA)
1010

11-
__version__ = '0.1.4'
11+
__version__ = '0.1.5'
1212

1313
_LOGGER = logging.getLogger(__name__)
1414

@@ -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)