mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
parent
d16a2fac80
commit
25d4dd82a0
@ -4,5 +4,5 @@
|
|||||||
"codeowners": ["@rishatik92", "@devbis"],
|
"codeowners": ["@rishatik92", "@devbis"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/yandex_transport",
|
"documentation": "https://www.home-assistant.io/integrations/yandex_transport",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["aioymaps==1.2.4"]
|
"requirements": ["aioymaps==1.2.5"]
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aioymaps import CaptchaError, YandexMapsRequester
|
from aioymaps import CaptchaError, NoSessionError, YandexMapsRequester
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
@ -88,7 +88,7 @@ class DiscoverYandexTransport(SensorEntity):
|
|||||||
closer_time = None
|
closer_time = None
|
||||||
try:
|
try:
|
||||||
yandex_reply = await self.requester.get_stop_info(self._stop_id)
|
yandex_reply = await self.requester.get_stop_info(self._stop_id)
|
||||||
except CaptchaError as ex:
|
except (CaptchaError, NoSessionError) as ex:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"%s. You may need to disable the integration for some time",
|
"%s. You may need to disable the integration for some time",
|
||||||
ex,
|
ex,
|
||||||
|
@ -407,7 +407,7 @@ aiowebostv==0.4.2
|
|||||||
aiowithings==3.0.2
|
aiowithings==3.0.2
|
||||||
|
|
||||||
# homeassistant.components.yandex_transport
|
# homeassistant.components.yandex_transport
|
||||||
aioymaps==1.2.4
|
aioymaps==1.2.5
|
||||||
|
|
||||||
# homeassistant.components.airgradient
|
# homeassistant.components.airgradient
|
||||||
airgradient==0.7.1
|
airgradient==0.7.1
|
||||||
|
@ -389,7 +389,7 @@ aiowebostv==0.4.2
|
|||||||
aiowithings==3.0.2
|
aiowithings==3.0.2
|
||||||
|
|
||||||
# homeassistant.components.yandex_transport
|
# homeassistant.components.yandex_transport
|
||||||
aioymaps==1.2.4
|
aioymaps==1.2.5
|
||||||
|
|
||||||
# homeassistant.components.airgradient
|
# homeassistant.components.airgradient
|
||||||
airgradient==0.7.1
|
airgradient==0.7.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user