Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MapoDan authored Jun 9, 2019
1 parent 3eead28 commit f79a4ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/file_restore/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

_LOGGER = logging.getLogger(__name__)

__version__ = '1.0.1'
__version__ = '1.0.2'

ATTR_TEMPERATURES = 'temperature_programs'

Expand Down Expand Up @@ -62,7 +62,7 @@ def __init__(self, name, file_path, unit):
def name(self):
"""Return the name of the sensor."""
return self._name

@property
def unit_of_measurement(self):
"""Return the unit the value is expressed in."""
Expand Down Expand Up @@ -97,7 +97,7 @@ def update(self):
_LOGGER.warning("File or data not present at the moment: %s",
os.path.basename(self._file_path))
return

data_array = data.split(',')
for index in range(len(data_array)):
self._temperatures[index] = float(data_array[index])
Expand Down

0 comments on commit f79a4ae

Please sign in to comment.