This commit is contained in:
Paulus Schoutsen 2022-12-14 13:50:07 -05:00 committed by GitHub
commit cc40c6d16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 12 deletions

View File

@ -68,7 +68,7 @@ async def async_validate_trigger_config(
# Only call the dynamic validator if the relevant config entry is loaded
registry = dr.async_get(hass)
if not (device := registry.async_get(config[CONF_DEVICE_ID])):
raise InvalidDeviceAutomationConfig
return config
device_config_entry = None
for entry_id in device.config_entries:
@ -80,7 +80,7 @@ async def async_validate_trigger_config(
break
if not device_config_entry:
raise InvalidDeviceAutomationConfig
return config
if not await hass.config_entries.async_wait_component(device_config_entry):
return config

View File

@ -3,7 +3,7 @@
"name": "ESPHome",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/esphome",
"requirements": ["aioesphomeapi==13.0.1"],
"requirements": ["aioesphomeapi==13.0.2"],
"zeroconf": ["_esphomelib._tcp.local."],
"dhcp": [{ "registered_devices": true }],
"codeowners": ["@OttoWinter", "@jesserockz"],

View File

@ -130,6 +130,7 @@ class HassIOIngress(HomeAssistantView):
allow_redirects=False,
data=request.content,
timeout=ClientTimeout(total=None),
skip_auto_headers={hdrs.CONTENT_TYPE},
) as result:
headers = _response_header(result)

View File

@ -2,7 +2,7 @@
"domain": "lupusec",
"name": "Lupus Electronics LUPUSEC",
"documentation": "https://www.home-assistant.io/integrations/lupusec",
"requirements": ["lupupy==0.2.1"],
"requirements": ["lupupy==0.2.3"],
"codeowners": ["@majuss"],
"iot_class": "local_polling",
"loggers": ["lupupy"]

View File

@ -3,7 +3,7 @@
"name": "Shelly",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/shelly",
"requirements": ["aioshelly==5.1.1"],
"requirements": ["aioshelly==5.1.2"],
"dependencies": ["bluetooth", "http"],
"zeroconf": [
{

View File

@ -8,7 +8,7 @@ from .backports.enum import StrEnum
APPLICATION_NAME: Final = "HomeAssistant"
MAJOR_VERSION: Final = 2022
MINOR_VERSION: Final = 12
PATCH_VERSION: Final = "5"
PATCH_VERSION: Final = "6"
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "homeassistant"
version = "2022.12.5"
version = "2022.12.6"
license = {text = "Apache-2.0"}
description = "Open-source home automation platform running on Python 3."
readme = "README.rst"

View File

@ -156,7 +156,7 @@ aioecowitt==2022.11.0
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==13.0.1
aioesphomeapi==13.0.2
# homeassistant.components.flo
aioflo==2021.11.0
@ -261,7 +261,7 @@ aiosenseme==0.6.1
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==5.1.1
aioshelly==5.1.2
# homeassistant.components.skybell
aioskybell==22.7.0
@ -1052,7 +1052,7 @@ london-tube-status==0.5
luftdaten==0.7.4
# homeassistant.components.lupusec
lupupy==0.2.1
lupupy==0.2.3
# homeassistant.components.lw12wifi
lw12==0.9.2

View File

@ -143,7 +143,7 @@ aioecowitt==2022.11.0
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==13.0.1
aioesphomeapi==13.0.2
# homeassistant.components.flo
aioflo==2021.11.0
@ -236,7 +236,7 @@ aiosenseme==0.6.1
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==5.1.1
aioshelly==5.1.2
# homeassistant.components.skybell
aioskybell==22.7.0

View File

@ -349,6 +349,7 @@ async def test_functional_device_trigger(
assert automation_calls[0].data["some"] == "test_trigger_button_press"
@pytest.mark.skip(reason="Temporarily disabled until automation validation is improved")
async def test_validate_trigger_unknown_device(hass, aioclient_mock):
"""Test unknown device does not return a trigger config."""
await setup_deconz_integration(hass, aioclient_mock)

View File

@ -372,6 +372,7 @@ async def test_exception_bad_trigger(hass, mock_devices, calls, caplog):
assert "Invalid config for [automation]" in caplog.text
@pytest.mark.skip(reason="Temporarily disabled until automation validation is improved")
async def test_exception_no_device(hass, mock_devices, calls, caplog):
"""Test for exception on event triggers firing."""