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

Commit

Permalink
Merge pull request #26 from JurajNyiri/master
Browse files Browse the repository at this point in the history
Fix: IndentationError: unexpected indent
  • Loading branch information
swetoast authored Jun 20, 2019
2 parents 80dd4c3 + b92482b commit 8641056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/rpi_power/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import (PLATFORM_SCHEMA)

__version__ = '0.1.4'
__version__ = '0.1.5'

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -42,6 +42,7 @@ def update(self):
"""The update method"""
_throttled = open(SYSFILE, 'r').read()[:-1]
_throttled = _throttled[:4]
if _throttled == '0':
self._description = 'Everything is working as intended'
elif _throttled == '1000':
self._description = 'Under-voltage was detected, consider getting a uninterruptible power supply for your Raspberry Pi.'
Expand Down

0 comments on commit 8641056

Please sign in to comment.