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:
parent
31da54d530
commit
c5d89499fa
3 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.aiohttp_client import (
|
from homeassistant.helpers.aiohttp_client import (
|
||||||
async_get_clientsession, async_aiohttp_proxy_web)
|
async_get_clientsession, async_aiohttp_proxy_web)
|
||||||
|
|
||||||
REQUIREMENTS = ['amcrest==1.1.5']
|
REQUIREMENTS = ['amcrest==1.1.8']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import homeassistant.loader as loader
|
||||||
|
|
||||||
from requests.exceptions import HTTPError, ConnectTimeout
|
from requests.exceptions import HTTPError, ConnectTimeout
|
||||||
|
|
||||||
REQUIREMENTS = ['amcrest==1.1.5']
|
REQUIREMENTS = ['amcrest==1.1.8']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -146,4 +146,4 @@ class AmcrestSensor(Entity):
|
||||||
sd_total = self._camera.storage_total
|
sd_total = self._camera.storage_total
|
||||||
self._attrs['Total'] = '{0} {1}'.format(*sd_total)
|
self._attrs['Total'] = '{0} {1}'.format(*sd_total)
|
||||||
self._attrs['Used'] = '{0} {1}'.format(*sd_used)
|
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
|
||||||
|
|
|
@ -48,7 +48,7 @@ aiolifx==0.4.2
|
||||||
|
|
||||||
# homeassistant.components.camera.amcrest
|
# homeassistant.components.camera.amcrest
|
||||||
# homeassistant.components.sensor.amcrest
|
# homeassistant.components.sensor.amcrest
|
||||||
amcrest==1.1.5
|
amcrest==1.1.8
|
||||||
|
|
||||||
# homeassistant.components.media_player.anthemav
|
# homeassistant.components.media_player.anthemav
|
||||||
anthemav==1.1.8
|
anthemav==1.1.8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue