mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
2022.12.6 (#83998)
This commit is contained in:
commit
cc40c6d16a
@ -68,7 +68,7 @@ async def async_validate_trigger_config(
|
|||||||
# Only call the dynamic validator if the relevant config entry is loaded
|
# Only call the dynamic validator if the relevant config entry is loaded
|
||||||
registry = dr.async_get(hass)
|
registry = dr.async_get(hass)
|
||||||
if not (device := registry.async_get(config[CONF_DEVICE_ID])):
|
if not (device := registry.async_get(config[CONF_DEVICE_ID])):
|
||||||
raise InvalidDeviceAutomationConfig
|
return config
|
||||||
|
|
||||||
device_config_entry = None
|
device_config_entry = None
|
||||||
for entry_id in device.config_entries:
|
for entry_id in device.config_entries:
|
||||||
@ -80,7 +80,7 @@ async def async_validate_trigger_config(
|
|||||||
break
|
break
|
||||||
|
|
||||||
if not device_config_entry:
|
if not device_config_entry:
|
||||||
raise InvalidDeviceAutomationConfig
|
return config
|
||||||
|
|
||||||
if not await hass.config_entries.async_wait_component(device_config_entry):
|
if not await hass.config_entries.async_wait_component(device_config_entry):
|
||||||
return config
|
return config
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "ESPHome",
|
"name": "ESPHome",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/esphome",
|
"documentation": "https://www.home-assistant.io/integrations/esphome",
|
||||||
"requirements": ["aioesphomeapi==13.0.1"],
|
"requirements": ["aioesphomeapi==13.0.2"],
|
||||||
"zeroconf": ["_esphomelib._tcp.local."],
|
"zeroconf": ["_esphomelib._tcp.local."],
|
||||||
"dhcp": [{ "registered_devices": true }],
|
"dhcp": [{ "registered_devices": true }],
|
||||||
"codeowners": ["@OttoWinter", "@jesserockz"],
|
"codeowners": ["@OttoWinter", "@jesserockz"],
|
||||||
|
@ -130,6 +130,7 @@ class HassIOIngress(HomeAssistantView):
|
|||||||
allow_redirects=False,
|
allow_redirects=False,
|
||||||
data=request.content,
|
data=request.content,
|
||||||
timeout=ClientTimeout(total=None),
|
timeout=ClientTimeout(total=None),
|
||||||
|
skip_auto_headers={hdrs.CONTENT_TYPE},
|
||||||
) as result:
|
) as result:
|
||||||
headers = _response_header(result)
|
headers = _response_header(result)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"domain": "lupusec",
|
"domain": "lupusec",
|
||||||
"name": "Lupus Electronics LUPUSEC",
|
"name": "Lupus Electronics LUPUSEC",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/lupusec",
|
"documentation": "https://www.home-assistant.io/integrations/lupusec",
|
||||||
"requirements": ["lupupy==0.2.1"],
|
"requirements": ["lupupy==0.2.3"],
|
||||||
"codeowners": ["@majuss"],
|
"codeowners": ["@majuss"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["lupupy"]
|
"loggers": ["lupupy"]
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Shelly",
|
"name": "Shelly",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/shelly",
|
"documentation": "https://www.home-assistant.io/integrations/shelly",
|
||||||
"requirements": ["aioshelly==5.1.1"],
|
"requirements": ["aioshelly==5.1.2"],
|
||||||
"dependencies": ["bluetooth", "http"],
|
"dependencies": ["bluetooth", "http"],
|
||||||
"zeroconf": [
|
"zeroconf": [
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ from .backports.enum import StrEnum
|
|||||||
APPLICATION_NAME: Final = "HomeAssistant"
|
APPLICATION_NAME: Final = "HomeAssistant"
|
||||||
MAJOR_VERSION: Final = 2022
|
MAJOR_VERSION: Final = 2022
|
||||||
MINOR_VERSION: Final = 12
|
MINOR_VERSION: Final = 12
|
||||||
PATCH_VERSION: Final = "5"
|
PATCH_VERSION: Final = "6"
|
||||||
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
||||||
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
|
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
|
||||||
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
|
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "homeassistant"
|
name = "homeassistant"
|
||||||
version = "2022.12.5"
|
version = "2022.12.6"
|
||||||
license = {text = "Apache-2.0"}
|
license = {text = "Apache-2.0"}
|
||||||
description = "Open-source home automation platform running on Python 3."
|
description = "Open-source home automation platform running on Python 3."
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
|
@ -156,7 +156,7 @@ aioecowitt==2022.11.0
|
|||||||
aioemonitor==1.0.5
|
aioemonitor==1.0.5
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
aioesphomeapi==13.0.1
|
aioesphomeapi==13.0.2
|
||||||
|
|
||||||
# homeassistant.components.flo
|
# homeassistant.components.flo
|
||||||
aioflo==2021.11.0
|
aioflo==2021.11.0
|
||||||
@ -261,7 +261,7 @@ aiosenseme==0.6.1
|
|||||||
aiosenz==1.0.0
|
aiosenz==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==5.1.1
|
aioshelly==5.1.2
|
||||||
|
|
||||||
# homeassistant.components.skybell
|
# homeassistant.components.skybell
|
||||||
aioskybell==22.7.0
|
aioskybell==22.7.0
|
||||||
@ -1052,7 +1052,7 @@ london-tube-status==0.5
|
|||||||
luftdaten==0.7.4
|
luftdaten==0.7.4
|
||||||
|
|
||||||
# homeassistant.components.lupusec
|
# homeassistant.components.lupusec
|
||||||
lupupy==0.2.1
|
lupupy==0.2.3
|
||||||
|
|
||||||
# homeassistant.components.lw12wifi
|
# homeassistant.components.lw12wifi
|
||||||
lw12==0.9.2
|
lw12==0.9.2
|
||||||
|
@ -143,7 +143,7 @@ aioecowitt==2022.11.0
|
|||||||
aioemonitor==1.0.5
|
aioemonitor==1.0.5
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
aioesphomeapi==13.0.1
|
aioesphomeapi==13.0.2
|
||||||
|
|
||||||
# homeassistant.components.flo
|
# homeassistant.components.flo
|
||||||
aioflo==2021.11.0
|
aioflo==2021.11.0
|
||||||
@ -236,7 +236,7 @@ aiosenseme==0.6.1
|
|||||||
aiosenz==1.0.0
|
aiosenz==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==5.1.1
|
aioshelly==5.1.2
|
||||||
|
|
||||||
# homeassistant.components.skybell
|
# homeassistant.components.skybell
|
||||||
aioskybell==22.7.0
|
aioskybell==22.7.0
|
||||||
|
@ -349,6 +349,7 @@ async def test_functional_device_trigger(
|
|||||||
assert automation_calls[0].data["some"] == "test_trigger_button_press"
|
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):
|
async def test_validate_trigger_unknown_device(hass, aioclient_mock):
|
||||||
"""Test unknown device does not return a trigger config."""
|
"""Test unknown device does not return a trigger config."""
|
||||||
await setup_deconz_integration(hass, aioclient_mock)
|
await setup_deconz_integration(hass, aioclient_mock)
|
||||||
|
@ -372,6 +372,7 @@ async def test_exception_bad_trigger(hass, mock_devices, calls, caplog):
|
|||||||
assert "Invalid config for [automation]" in caplog.text
|
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):
|
async def test_exception_no_device(hass, mock_devices, calls, caplog):
|
||||||
"""Test for exception on event triggers firing."""
|
"""Test for exception on event triggers firing."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user