Compare commits

...

7 Commits

Author SHA1 Message Date
Paulus Schoutsen
202fd4197b Bumped version to 0.105.0b1 2020-01-30 09:48:00 -08:00
Paulus Schoutsen
e91c32cb00 Fix HTTP config serialization (#31319) 2020-01-30 09:47:50 -08:00
Bram Kragten
af8b63fe31 Updated frontend to 20200130.0 (#31318) 2020-01-30 09:47:49 -08:00
Paulus Schoutsen
afe869bee9 Handle service calls that do not refer entity IDs (#31317) 2020-01-30 09:47:49 -08:00
Paulus Schoutsen
f55193c2da Add zone to defaul config (#31303) 2020-01-30 09:47:48 -08:00
Paulus Schoutsen
9db2ad1fd7 Add zones services.yaml (#31298) 2020-01-30 09:47:47 -08:00
Alexei Chetroi
268430a61d ZHA dependencies bump (#31295)
* ZHA dependencies bump.

* Bump bellows-homeassistant.
2020-01-30 09:47:47 -08:00
12 changed files with 43 additions and 21 deletions

View File

@@ -18,7 +18,8 @@
"sun",
"system_health",
"updater",
"zeroconf"
"zeroconf",
"zone"
],
"codeowners": []
}

View File

@@ -3,7 +3,7 @@
"name": "Home Assistant Frontend",
"documentation": "https://www.home-assistant.io/integrations/frontend",
"requirements": [
"home-assistant-frontend==20200129.0"
"home-assistant-frontend==20200130.0"
],
"dependencies": [
"api",

View File

@@ -166,7 +166,16 @@ async def async_setup(hass, config):
# If we are set up successful, we store the HTTP settings for safe mode.
store = storage.Store(hass, STORAGE_VERSION, STORAGE_KEY)
await store.async_save(conf)
if CONF_TRUSTED_PROXIES in conf:
conf_to_save = dict(conf)
conf_to_save[CONF_TRUSTED_PROXIES] = [
str(ip.network_address) for ip in conf_to_save[CONF_TRUSTED_PROXIES]
]
else:
conf_to_save = conf
await store.async_save(conf_to_save)
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, start_server)

View File

@@ -4,11 +4,11 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/zha",
"requirements": [
"bellows-homeassistant==0.12.0",
"bellows-homeassistant==0.13.1",
"zha-quirks==0.0.31",
"zigpy-deconz==0.7.0",
"zigpy-homeassistant==0.12.0",
"zigpy-xbee-homeassistant==0.8.0",
"zigpy-homeassistant==0.13.0",
"zigpy-xbee-homeassistant==0.9.0",
"zigpy-zigate==0.5.1"
],
"dependencies": [],

View File

@@ -0,0 +1,2 @@
reload:
description: Reload the YAML-based zone configuration.

View File

@@ -1,7 +1,7 @@
"""Constants used by Home Assistant components."""
MAJOR_VERSION = 0
MINOR_VERSION = 105
PATCH_VERSION = "0b0"
PATCH_VERSION = "0b1"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
REQUIRED_PYTHON_VER = (3, 7, 0)

View File

@@ -201,6 +201,10 @@ class Script:
continue
entity_ids = data.get(ATTR_ENTITY_ID)
if entity_ids is None:
continue
if isinstance(entity_ids, str):
entity_ids = [entity_ids]

View File

@@ -11,7 +11,7 @@ cryptography==2.8
defusedxml==0.6.0
distro==1.4.0
hass-nabucasa==0.31
home-assistant-frontend==20200129.0
home-assistant-frontend==20200130.0
importlib-metadata==1.4.0
jinja2>=2.10.3
netdisco==2.6.0

View File

@@ -299,7 +299,7 @@ beautifulsoup4==4.8.2
beewi_smartclim==0.0.7
# homeassistant.components.zha
bellows-homeassistant==0.12.0
bellows-homeassistant==0.13.1
# homeassistant.components.bmw_connected_drive
bimmer_connected==0.6.2
@@ -679,7 +679,7 @@ hole==0.5.0
holidays==0.9.12
# homeassistant.components.frontend
home-assistant-frontend==20200129.0
home-assistant-frontend==20200130.0
# homeassistant.components.zwave
homeassistant-pyozw==0.1.8
@@ -2130,10 +2130,10 @@ ziggo-mediabox-xl==1.1.0
zigpy-deconz==0.7.0
# homeassistant.components.zha
zigpy-homeassistant==0.12.0
zigpy-homeassistant==0.13.0
# homeassistant.components.zha
zigpy-xbee-homeassistant==0.8.0
zigpy-xbee-homeassistant==0.9.0
# homeassistant.components.zha
zigpy-zigate==0.5.1

View File

@@ -112,7 +112,7 @@ av==6.1.2
axis==25
# homeassistant.components.zha
bellows-homeassistant==0.12.0
bellows-homeassistant==0.13.1
# homeassistant.components.bom
bomradarloop==0.1.3
@@ -247,7 +247,7 @@ hole==0.5.0
holidays==0.9.12
# homeassistant.components.frontend
home-assistant-frontend==20200129.0
home-assistant-frontend==20200130.0
# homeassistant.components.zwave
homeassistant-pyozw==0.1.8
@@ -699,10 +699,10 @@ zha-quirks==0.0.31
zigpy-deconz==0.7.0
# homeassistant.components.zha
zigpy-homeassistant==0.12.0
zigpy-homeassistant==0.13.0
# homeassistant.components.zha
zigpy-xbee-homeassistant==0.8.0
zigpy-xbee-homeassistant==0.9.0
# homeassistant.components.zha
zigpy-zigate==0.5.1

View File

@@ -1,4 +1,5 @@
"""The tests for the Home Assistant HTTP component."""
from ipaddress import ip_network
import logging
import unittest
from unittest.mock import patch
@@ -244,12 +245,16 @@ async def test_cors_defaults(hass):
async def test_storing_config(hass, aiohttp_client, aiohttp_unused_port):
"""Test that we store last working config."""
config = {http.CONF_SERVER_PORT: aiohttp_unused_port()}
config = {
http.CONF_SERVER_PORT: aiohttp_unused_port(),
"use_x_forwarded_for": True,
"trusted_proxies": ["192.168.1.100"],
}
await async_setup_component(hass, http.DOMAIN, {http.DOMAIN: config})
assert await async_setup_component(hass, http.DOMAIN, {http.DOMAIN: config})
await hass.async_start()
restored = await hass.components.http.async_get_last_config()
restored["trusted_proxies"][0] = ip_network(restored["trusted_proxies"][0])
assert await hass.components.http.async_get_last_config() == http.HTTP_SCHEMA(
config
)
assert restored == http.HTTP_SCHEMA(config)

View File

@@ -1043,6 +1043,7 @@ async def test_referenced_entities():
"entity_id": "sensor.condition",
"state": "100",
},
{"service": "test.script", "data": {"without": "entity_id"}},
{"scene": "scene.hello"},
{"event": "test_event"},
{"delay": "{{ delay_period }}"},