Bump Amcrest module to 1.1.8 (#6990)

Fixed traceback when calculating SD card percent storage

   self._state = self._camera.percent(sd_used[0], sd_total[0])
AttributeError: 'Http' object has no attribute 'percent'
This commit is contained in:
Marcelo Moreira de Mello 2017-04-08 17:52:10 -04:00 committed by Paulus Schoutsen
parent dea9aec268
commit 50cc2ed97c
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ import homeassistant.loader as loader
from requests.exceptions import HTTPError, ConnectTimeout
REQUIREMENTS = ['amcrest==1.1.5']
REQUIREMENTS = ['amcrest==1.1.8']
_LOGGER = logging.getLogger(__name__)
@ -146,4 +146,4 @@ class AmcrestSensor(Entity):
sd_total = self._camera.storage_total
self._attrs['Total'] = '{0} {1}'.format(*sd_total)
self._attrs['Used'] = '{0} {1}'.format(*sd_used)
self._state = self._camera.percent(sd_used[0], sd_total[0])
self._state = self._camera.storage_used_percent