Upgrade gitterpy to 0.1.6 (#9983)
This commit is contained in:
parent
4f1eab138c
commit
aab7442cc5
2 changed files with 7 additions and 4 deletions
|
@ -13,7 +13,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA
|
|||
from homeassistant.const import CONF_NAME, CONF_API_KEY
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
REQUIREMENTS = ['gitterpy==0.1.5']
|
||||
REQUIREMENTS = ['gitterpy==0.1.6']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -99,5 +99,8 @@ class GitterSensor(Entity):
|
|||
def update(self):
|
||||
"""Get the latest data and updates the state."""
|
||||
data = self._data.user.unread_items(self._room)
|
||||
self._mention = len(data['mention'])
|
||||
self._state = len(data['chat'])
|
||||
if 'error' not in data.keys():
|
||||
self._mention = len(data['mention'])
|
||||
self._state = len(data['chat'])
|
||||
else:
|
||||
_LOGGER.error("Not joined: %s", self._room)
|
||||
|
|
|
@ -277,7 +277,7 @@ gTTS-token==1.1.1
|
|||
# gattlib==0.20150805
|
||||
|
||||
# homeassistant.components.sensor.gitter
|
||||
gitterpy==0.1.5
|
||||
gitterpy==0.1.6
|
||||
|
||||
# homeassistant.components.notify.gntp
|
||||
gntp==1.0.3
|
||||
|
|
Loading…
Add table
Reference in a new issue