mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
commit
fa324dce9c
@ -11,7 +11,8 @@ import requests
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.components.device_tracker import DOMAIN, PLATFORM_SCHEMA
|
from homeassistant.components.device_tracker import (
|
||||||
|
DOMAIN, PLATFORM_SCHEMA, DeviceScanner)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL)
|
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL)
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ def get_scanner(hass, config):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
class LinksysAPDeviceScanner(object):
|
class LinksysAPDeviceScanner(DeviceScanner):
|
||||||
"""This class queries a Linksys Access Point."""
|
"""This class queries a Linksys Access Point."""
|
||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
|
@ -136,6 +136,7 @@ class Dominos():
|
|||||||
|
|
||||||
def get_menu(self):
|
def get_menu(self):
|
||||||
"""Return the products from the closest stores menu."""
|
"""Return the products from the closest stores menu."""
|
||||||
|
self.update_closest_store()
|
||||||
if self.closest_store is None:
|
if self.closest_store is None:
|
||||||
_LOGGER.warning('Cannot get menu. Store may be closed')
|
_LOGGER.warning('Cannot get menu. Store may be closed')
|
||||||
return []
|
return []
|
||||||
|
@ -583,9 +583,9 @@ def _is_latest(js_option, request):
|
|||||||
|
|
||||||
family_min_version = {
|
family_min_version = {
|
||||||
'Chrome': 50, # Probably can reduce this
|
'Chrome': 50, # Probably can reduce this
|
||||||
'Firefox': 41, # Destructuring added in 41
|
'Firefox': 43, # Array.protopype.includes added in 43
|
||||||
'Opera': 40, # Probably can reduce this
|
'Opera': 40, # Probably can reduce this
|
||||||
'Edge': 14, # Maybe can reduce this
|
'Edge': 14, # Array.protopype.includes added in 14
|
||||||
'Safari': 10, # many features not supported by 9
|
'Safari': 10, # many features not supported by 9
|
||||||
}
|
}
|
||||||
version = family_min_version.get(useragent.browser.family)
|
version = family_min_version.get(useragent.browser.family)
|
||||||
|
@ -20,7 +20,9 @@ from homeassistant.const import (
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
REQUIREMENTS = ['pychromecast==1.0.2']
|
# Do not upgrade to 1.0.2, it breaks a bunch of stuff
|
||||||
|
# https://github.com/home-assistant/home-assistant/issues/10926
|
||||||
|
REQUIREMENTS = ['pychromecast==0.8.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ APPLICATION_NAME = 'Home Assistant'
|
|||||||
|
|
||||||
DOMAIN = 'tellduslive'
|
DOMAIN = 'tellduslive'
|
||||||
|
|
||||||
REQUIREMENTS = ['tellduslive==0.10.3']
|
REQUIREMENTS = ['tellduslive==0.10.4']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
from homeassistant.config import load_yaml_config_file
|
from homeassistant.config import load_yaml_config_file
|
||||||
from homeassistant.util.json import load_json, save_json
|
from homeassistant.util.json import load_json, save_json
|
||||||
|
|
||||||
REQUIREMENTS = ['python-wink==1.7.0', 'pubnubsub-handler==1.0.2']
|
REQUIREMENTS = ['python-wink==1.7.1', 'pubnubsub-handler==1.0.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -460,10 +460,11 @@ def setup(hass, config):
|
|||||||
sirens_to_set.append(siren)
|
sirens_to_set.append(siren)
|
||||||
|
|
||||||
for siren in sirens_to_set:
|
for siren in sirens_to_set:
|
||||||
|
_man = siren.wink.device_manufacturer()
|
||||||
if (service.service != SERVICE_SET_AUTO_SHUTOFF and
|
if (service.service != SERVICE_SET_AUTO_SHUTOFF and
|
||||||
service.service != SERVICE_ENABLE_SIREN and
|
service.service != SERVICE_ENABLE_SIREN and
|
||||||
siren.wink.device_manufacturer() != 'dome'):
|
(_man != 'dome' and _man != 'wink')):
|
||||||
_LOGGER.error("Service only valid for Dome sirens.")
|
_LOGGER.error("Service only valid for Dome or Wink sirens.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if service.service == SERVICE_ENABLE_SIREN:
|
if service.service == SERVICE_ENABLE_SIREN:
|
||||||
@ -494,10 +495,11 @@ def setup(hass, config):
|
|||||||
component = EntityComponent(_LOGGER, DOMAIN, hass)
|
component = EntityComponent(_LOGGER, DOMAIN, hass)
|
||||||
|
|
||||||
sirens = []
|
sirens = []
|
||||||
has_dome_siren = False
|
has_dome_or_wink_siren = False
|
||||||
for siren in pywink.get_sirens():
|
for siren in pywink.get_sirens():
|
||||||
if siren.device_manufacturer() == "dome":
|
_man = siren.device_manufacturer()
|
||||||
has_dome_siren = True
|
if _man == "dome" or _man == "wink":
|
||||||
|
has_dome_or_wink_siren = True
|
||||||
_id = siren.object_id() + siren.name()
|
_id = siren.object_id() + siren.name()
|
||||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||||
sirens.append(WinkSirenDevice(siren, hass))
|
sirens.append(WinkSirenDevice(siren, hass))
|
||||||
@ -514,7 +516,7 @@ def setup(hass, config):
|
|||||||
descriptions.get(SERVICE_ENABLE_SIREN),
|
descriptions.get(SERVICE_ENABLE_SIREN),
|
||||||
schema=ENABLED_SIREN_SCHEMA)
|
schema=ENABLED_SIREN_SCHEMA)
|
||||||
|
|
||||||
if has_dome_siren:
|
if has_dome_or_wink_siren:
|
||||||
|
|
||||||
hass.services.register(DOMAIN, SERVICE_SET_SIREN_TONE,
|
hass.services.register(DOMAIN, SERVICE_SET_SIREN_TONE,
|
||||||
service_handle,
|
service_handle,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 59
|
MINOR_VERSION = 59
|
||||||
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, 4, 2)
|
REQUIRED_PYTHON_VER = (3, 4, 2)
|
||||||
|
@ -623,7 +623,7 @@ pybbox==0.0.5-alpha
|
|||||||
# pybluez==0.22
|
# pybluez==0.22
|
||||||
|
|
||||||
# homeassistant.components.media_player.cast
|
# homeassistant.components.media_player.cast
|
||||||
pychromecast==1.0.2
|
pychromecast==0.8.2
|
||||||
|
|
||||||
# homeassistant.components.media_player.cmus
|
# homeassistant.components.media_player.cmus
|
||||||
pycmus==0.1.0
|
pycmus==0.1.0
|
||||||
@ -883,7 +883,7 @@ python-velbus==2.0.11
|
|||||||
python-vlc==1.1.2
|
python-vlc==1.1.2
|
||||||
|
|
||||||
# homeassistant.components.wink
|
# homeassistant.components.wink
|
||||||
python-wink==1.7.0
|
python-wink==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.sensor.swiss_public_transport
|
# homeassistant.components.sensor.swiss_public_transport
|
||||||
python_opendata_transport==0.0.3
|
python_opendata_transport==0.0.3
|
||||||
@ -1063,7 +1063,7 @@ tellcore-net==0.3
|
|||||||
tellcore-py==1.1.2
|
tellcore-py==1.1.2
|
||||||
|
|
||||||
# homeassistant.components.tellduslive
|
# homeassistant.components.tellduslive
|
||||||
tellduslive==0.10.3
|
tellduslive==0.10.4
|
||||||
|
|
||||||
# homeassistant.components.sensor.temper
|
# homeassistant.components.sensor.temper
|
||||||
temperusb==1.5.3
|
temperusb==1.5.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user