From c115c89afd78d158a3833bbba7b2faec1a9742d3 Mon Sep 17 00:00:00 2001 From: John Mihalic <2854333+mezz64@users.noreply.github.com> Date: Fri, 15 Feb 2019 01:18:12 -0500 Subject: [PATCH] Bump pyHik library to 0.2.2, improve connections, add sensors (#21086) --- homeassistant/components/binary_sensor/hikvision.py | 4 +++- requirements_all.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/binary_sensor/hikvision.py b/homeassistant/components/binary_sensor/hikvision.py index 57618ca2652..fdefc40d8fd 100644 --- a/homeassistant/components/binary_sensor/hikvision.py +++ b/homeassistant/components/binary_sensor/hikvision.py @@ -18,7 +18,7 @@ from homeassistant.const import ( CONF_SSL, EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START, ATTR_LAST_TRIP_TIME, CONF_CUSTOMIZE) -REQUIREMENTS = ['pyhik==0.1.9'] +REQUIREMENTS = ['pyhik==0.2.2'] _LOGGER = logging.getLogger(__name__) CONF_IGNORED = 'ignored' @@ -51,6 +51,8 @@ DEVICE_CLASS_MAP = { 'Unattended Baggage': 'motion', 'Attended Baggage': 'motion', 'Recording Failure': None, + 'Exiting Region': 'motion', + 'Entering Region': 'motion', } CUSTOMIZE_SCHEMA = vol.Schema({ diff --git a/requirements_all.txt b/requirements_all.txt index 01a2b576e5a..592afdd634f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1053,7 +1053,7 @@ pygtt==1.1.2 pyhaversion==2.0.3 # homeassistant.components.binary_sensor.hikvision -pyhik==0.1.9 +pyhik==0.2.2 # homeassistant.components.hive pyhiveapi==0.2.17