mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Upgrade gitterpy to 0.1.6 (#9983)
This commit is contained in:
parent
4f1eab138c
commit
aab7442cc5
@ -13,7 +13,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA
|
|||||||
from homeassistant.const import CONF_NAME, CONF_API_KEY
|
from homeassistant.const import CONF_NAME, CONF_API_KEY
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
REQUIREMENTS = ['gitterpy==0.1.5']
|
REQUIREMENTS = ['gitterpy==0.1.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -99,5 +99,8 @@ class GitterSensor(Entity):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data and updates the state."""
|
"""Get the latest data and updates the state."""
|
||||||
data = self._data.user.unread_items(self._room)
|
data = self._data.user.unread_items(self._room)
|
||||||
self._mention = len(data['mention'])
|
if 'error' not in data.keys():
|
||||||
self._state = len(data['chat'])
|
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
|
# gattlib==0.20150805
|
||||||
|
|
||||||
# homeassistant.components.sensor.gitter
|
# homeassistant.components.sensor.gitter
|
||||||
gitterpy==0.1.5
|
gitterpy==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.notify.gntp
|
# homeassistant.components.notify.gntp
|
||||||
gntp==1.0.3
|
gntp==1.0.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user