Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade gitterpy to 0.1.6 #9983

Merged
merged 1 commit into from Oct 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions homeassistant/components/sensor/gitter.py
Expand Up @@ -13,7 +13,7 @@
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__)

Expand Down Expand Up @@ -99,5 +99,8 @@ def icon(self):
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)
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -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
Expand Down