mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
commit
77f595c9a4
@ -159,7 +159,7 @@ jobs:
|
|||||||
git config --global user.email "pvizeli@syshack.ch"
|
git config --global user.email "pvizeli@syshack.ch"
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
|
|
||||||
echo "https://$(githubToken):x-oauth-basic@github.com" > $HOME\.git-credentials
|
echo "https://$(githubToken):x-oauth-basic@github.com" > $HOME/.git-credentials
|
||||||
displayName: 'Install requirements'
|
displayName: 'Install requirements'
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Support for repeating alerts when conditions are met."""
|
"""Support for repeating alerts when conditions are met."""
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
from datetime import datetime, timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -13,6 +13,7 @@ from homeassistant.const import (
|
|||||||
SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_TOGGLE, ATTR_ENTITY_ID)
|
SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_TOGGLE, ATTR_ENTITY_ID)
|
||||||
from homeassistant.helpers import service, event
|
from homeassistant.helpers import service, event
|
||||||
from homeassistant.helpers.entity import ToggleEntity
|
from homeassistant.helpers.entity import ToggleEntity
|
||||||
|
from homeassistant.util.dt import now
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -222,7 +223,7 @@ class Alert(ToggleEntity):
|
|||||||
async def _schedule_notify(self):
|
async def _schedule_notify(self):
|
||||||
"""Schedule a notification."""
|
"""Schedule a notification."""
|
||||||
delay = self._delay[self._next_delay]
|
delay = self._delay[self._next_delay]
|
||||||
next_msg = datetime.now() + delay
|
next_msg = now() + delay
|
||||||
self._cancel = \
|
self._cancel = \
|
||||||
event.async_track_point_in_time(self.hass, self._notify, next_msg)
|
event.async_track_point_in_time(self.hass, self._notify, next_msg)
|
||||||
self._next_delay = min(self._next_delay + 1, len(self._delay) - 1)
|
self._next_delay = min(self._next_delay + 1, len(self._delay) - 1)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Broadlink",
|
"name": "Broadlink",
|
||||||
"documentation": "https://www.home-assistant.io/components/broadlink",
|
"documentation": "https://www.home-assistant.io/components/broadlink",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"broadlink==0.9.0"
|
"broadlink==0.10.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
@ -53,21 +53,20 @@ class DiscordNotificationService(BaseNotificationService):
|
|||||||
_LOGGER.error("No target specified")
|
_LOGGER.error("No target specified")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if ATTR_DATA in kwargs:
|
data = kwargs.get(ATTR_DATA) or {}
|
||||||
data = kwargs.get(ATTR_DATA)
|
|
||||||
|
|
||||||
if ATTR_IMAGES in data:
|
if ATTR_IMAGES in data:
|
||||||
images = list()
|
images = list()
|
||||||
|
|
||||||
for image in data.get(ATTR_IMAGES):
|
for image in data.get(ATTR_IMAGES):
|
||||||
image_exists = await self.hass.async_add_executor_job(
|
image_exists = await self.hass.async_add_executor_job(
|
||||||
self.file_exists,
|
self.file_exists,
|
||||||
image)
|
image)
|
||||||
|
|
||||||
if image_exists:
|
if image_exists:
|
||||||
images.append(image)
|
images.append(image)
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning("Image not found: %s", image)
|
_LOGGER.warning("Image not found: %s", image)
|
||||||
|
|
||||||
# pylint: disable=unused-variable
|
# pylint: disable=unused-variable
|
||||||
@discord_bot.event
|
@discord_bot.event
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Traccar",
|
"name": "Traccar",
|
||||||
"documentation": "https://www.home-assistant.io/components/traccar",
|
"documentation": "https://www.home-assistant.io/components/traccar",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pytraccar==0.8.0",
|
"pytraccar==0.9.0",
|
||||||
"stringcase==1.2.0"
|
"stringcase==1.2.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 93
|
MINOR_VERSION = 93
|
||||||
PATCH_VERSION = '1'
|
PATCH_VERSION = '2'
|
||||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||||
REQUIRED_PYTHON_VER = (3, 5, 3)
|
REQUIRED_PYTHON_VER = (3, 5, 3)
|
||||||
|
@ -338,12 +338,6 @@ async def check_ha_config_file(hass):
|
|||||||
result.add_error("Integration not found: {}".format(domain))
|
result.add_error("Integration not found: {}".format(domain))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
|
||||||
component = integration.get_component()
|
|
||||||
except ImportError:
|
|
||||||
result.add_error("Component not found: {}".format(domain))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if (not hass.config.skip_pip and integration.requirements and
|
if (not hass.config.skip_pip and integration.requirements and
|
||||||
not await requirements.async_process_requirements(
|
not await requirements.async_process_requirements(
|
||||||
hass, integration.domain, integration.requirements)):
|
hass, integration.domain, integration.requirements)):
|
||||||
@ -351,6 +345,12 @@ async def check_ha_config_file(hass):
|
|||||||
', '.join(integration.requirements)))
|
', '.join(integration.requirements)))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
|
component = integration.get_component()
|
||||||
|
except ImportError:
|
||||||
|
result.add_error("Component not found: {}".format(domain))
|
||||||
|
continue
|
||||||
|
|
||||||
if hasattr(component, 'CONFIG_SCHEMA'):
|
if hasattr(component, 'CONFIG_SCHEMA'):
|
||||||
try:
|
try:
|
||||||
config = component.CONFIG_SCHEMA(config)
|
config = component.CONFIG_SCHEMA(config)
|
||||||
|
@ -261,7 +261,7 @@ boto3==1.9.16
|
|||||||
braviarc-homeassistant==0.3.7.dev0
|
braviarc-homeassistant==0.3.7.dev0
|
||||||
|
|
||||||
# homeassistant.components.broadlink
|
# homeassistant.components.broadlink
|
||||||
broadlink==0.9.0
|
broadlink==0.10.0
|
||||||
|
|
||||||
# homeassistant.components.brottsplatskartan
|
# homeassistant.components.brottsplatskartan
|
||||||
brottsplatskartan==0.0.1
|
brottsplatskartan==0.0.1
|
||||||
@ -1450,7 +1450,7 @@ pytile==2.0.6
|
|||||||
pytouchline==0.7
|
pytouchline==0.7
|
||||||
|
|
||||||
# homeassistant.components.traccar
|
# homeassistant.components.traccar
|
||||||
pytraccar==0.8.0
|
pytraccar==0.9.0
|
||||||
|
|
||||||
# homeassistant.components.trackr
|
# homeassistant.components.trackr
|
||||||
pytrackr==0.0.5
|
pytrackr==0.0.5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user