Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/alexa_devices/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"loggers": ["aioamazondevices"],
"quality_scale": "bronze",
"requirements": ["aioamazondevices==3.1.4"]
"requirements": ["aioamazondevices==3.1.12"]
}
4 changes: 3 additions & 1 deletion homeassistant/components/devolo_home_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ async def async_unload_entry(


async def async_remove_config_entry_device(
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: DeviceEntry
hass: HomeAssistant,
config_entry: DevoloHomeControlConfigEntry,
device_entry: DeviceEntry,
) -> bool:
"""Remove a config entry from a device."""
return True
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/holiday/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/holiday",
"iot_class": "local_polling",
"requirements": ["holidays==0.74", "babel==2.15.0"]
"requirements": ["holidays==0.75", "babel==2.15.0"]
}
8 changes: 4 additions & 4 deletions homeassistant/components/homee/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
"state_attributes": {
"event_type": {
"state": {
"upper": "[%key;component::homee::entity::event::button_state::state_attributes::event_type::state::upper%]",
"lower": "[%key;component::homee::entity::event::button_state::state_attributes::event_type::state::lower%]",
"released": "[%key;component::homee::entity::event::button_state::state_attributes::event_type::state::released%]"
"upper": "[%key:component::homee::entity::event::button_state::state_attributes::event_type::state::upper%]",
"lower": "[%key:component::homee::entity::event::button_state::state_attributes::event_type::state::lower%]",
"released": "[%key:component::homee::entity::event::button_state::state_attributes::event_type::state::released%]"
}
}
}
Expand All @@ -189,7 +189,7 @@
"state_attributes": {
"event_type": {
"state": {
"release": "[%key;component::homee::entity::event::button_state::state_attributes::event_type::state::released%]",
"release": "[%key:component::homee::entity::event::button_state::state_attributes::event_type::state::released%]",
"up": "Up",
"down": "Down",
"stop": "Stop",
Expand Down
12 changes: 10 additions & 2 deletions homeassistant/components/reolink/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def __init__(
)

http_s = "https" if self._host.api.use_https else "http"
self._conf_url = f"{http_s}://{self._host.api.host}:{self._host.api.port}"
if self._host.api.baichuan_only:
self._conf_url = None
else:
self._conf_url = f"{http_s}://{self._host.api.host}:{self._host.api.port}"
self._dev_id = self._host.unique_id
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._dev_id)},
Expand Down Expand Up @@ -184,6 +187,11 @@ def __init__(
if mac := self._host.api.baichuan.mac_address(dev_ch):
connections.add((CONNECTION_NETWORK_MAC, mac))

if self._conf_url is None:
conf_url = None
else:
conf_url = f"{self._conf_url}/?ch={dev_ch}"

self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._dev_id)},
connections=connections,
Expand All @@ -195,7 +203,7 @@ def __init__(
hw_version=self._host.api.camera_hardware_version(dev_ch),
sw_version=self._host.api.camera_sw_version(dev_ch),
serial_number=self._host.api.camera_uid(dev_ch),
configuration_url=f"{self._conf_url}/?ch={dev_ch}",
configuration_url=conf_url,
)

@property
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/smartthings/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@
"name": "Wrinkle prevent"
},
"ice_maker": {
"name": "Ice cubes"
"name": "Cubed ice"
},
"ice_maker_2": {
"name": "Ice bites"
"name": "Ice Bites"
},
"sabbath_mode": {
"name": "Sabbath mode"
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/webdav/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"loggers": ["aiowebdav2"],
"quality_scale": "bronze",
"requirements": ["aiowebdav2==0.4.5"]
"requirements": ["aiowebdav2==0.4.6"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/workday/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "local_polling",
"loggers": ["holidays"],
"quality_scale": "internal",
"requirements": ["holidays==0.74"]
"requirements": ["holidays==0.75"]
}
1 change: 1 addition & 0 deletions homeassistant/components/zwave_js/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ class ZWaveDiscoverySchema:
any_available_states={(0, "idle")},
),
allow_multi=True,
entity_registry_enabled_default=False,
),
# event
# stateful = False
Expand Down
6 changes: 3 additions & 3 deletions requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions tests/components/devolo_home_control/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from unittest.mock import patch

import pytest
from syrupy.assertion import SnapshotAssertion

from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
Expand All @@ -19,7 +18,6 @@
)


@pytest.mark.usefixtures("mock_zeroconf")
async def test_binary_sensor(
hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion
) -> None:
Expand Down Expand Up @@ -58,7 +56,6 @@ async def test_binary_sensor(
)


@pytest.mark.usefixtures("mock_zeroconf")
async def test_remote_control(
hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion
) -> None:
Expand Down Expand Up @@ -99,7 +96,6 @@ async def test_remote_control(
)


@pytest.mark.usefixtures("mock_zeroconf")
async def test_disabled(hass: HomeAssistant) -> None:
"""Test setup of a disabled device."""
entry = configure_integration(hass)
Expand All @@ -113,7 +109,6 @@ async def test_disabled(hass: HomeAssistant) -> None:
assert hass.states.get(f"{BINARY_SENSOR_DOMAIN}.test_door") is None


@pytest.mark.usefixtures("mock_zeroconf")
async def test_remove_from_hass(hass: HomeAssistant) -> None:
"""Test removing entity."""
entry = configure_integration(hass)
Expand Down
38 changes: 0 additions & 38 deletions tests/components/devolo_home_control/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,44 +66,6 @@ async def test_form_already_configured(hass: HomeAssistant) -> None:
assert result["reason"] == "already_configured"


async def test_form_advanced_options(hass: HomeAssistant) -> None:
"""Test if we get the advanced options if user has enabled it."""
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_USER, "show_advanced_options": True},
)
assert result["type"] is FlowResultType.FORM
assert result["errors"] == {}

with (
patch(
"homeassistant.components.devolo_home_control.async_setup_entry",
return_value=True,
) as mock_setup_entry,
patch(
"homeassistant.components.devolo_home_control.Mydevolo.uuid",
return_value="123456",
),
):
result2 = await hass.config_entries.flow.async_configure(
result["flow_id"],
{
"username": "test-username",
"password": "test-password",
},
)
await hass.async_block_till_done()

assert result2["type"] is FlowResultType.CREATE_ENTRY
assert result2["title"] == "devolo Home Control"
assert result2["data"] == {
"username": "test-username",
"password": "test-password",
}

assert len(mock_setup_entry.mock_calls) == 1


async def test_form_zeroconf(hass: HomeAssistant) -> None:
"""Test that the zeroconf confirmation form is served."""
result = await hass.config_entries.flow.async_init(
Expand Down
2 changes: 0 additions & 2 deletions tests/components/devolo_home_control/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the devolo Home Control diagnostics."""

from __future__ import annotations

from unittest.mock import patch

from syrupy.assertion import SnapshotAssertion
Expand Down
2 changes: 0 additions & 2 deletions tests/components/devolo_home_control/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from tests.typing import WebSocketGenerator


@pytest.mark.usefixtures("mock_zeroconf")
async def test_setup_entry(hass: HomeAssistant) -> None:
"""Test setup entry."""
entry = configure_integration(hass)
Expand All @@ -44,7 +43,6 @@ async def test_setup_entry_maintenance(hass: HomeAssistant) -> None:
assert entry.state is ConfigEntryState.SETUP_RETRY


@pytest.mark.usefixtures("mock_zeroconf")
async def test_setup_gateway_offline(hass: HomeAssistant) -> None:
"""Test setup entry fails on gateway offline."""
entry = configure_integration(hass)
Expand Down
5 changes: 0 additions & 5 deletions tests/components/devolo_home_control/test_siren.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from unittest.mock import patch

import pytest
from syrupy.assertion import SnapshotAssertion

from homeassistant.components.siren import DOMAIN as SIREN_DOMAIN
Expand All @@ -14,7 +13,6 @@
from .mocks import HomeControlMock, HomeControlMockSiren


@pytest.mark.usefixtures("mock_zeroconf")
async def test_siren(
hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion
) -> None:
Expand Down Expand Up @@ -45,7 +43,6 @@ async def test_siren(
assert hass.states.get(f"{SIREN_DOMAIN}.test").state == STATE_UNAVAILABLE


@pytest.mark.usefixtures("mock_zeroconf")
async def test_siren_switching(
hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion
) -> None:
Expand Down Expand Up @@ -98,7 +95,6 @@ async def test_siren_switching(
property_set.assert_called_once_with(0)


@pytest.mark.usefixtures("mock_zeroconf")
async def test_siren_change_default_tone(
hass: HomeAssistant, entity_registry: er.EntityRegistry, snapshot: SnapshotAssertion
) -> None:
Expand Down Expand Up @@ -130,7 +126,6 @@ async def test_siren_change_default_tone(
property_set.assert_called_once_with(2)


@pytest.mark.usefixtures("mock_zeroconf")
async def test_remove_from_hass(hass: HomeAssistant) -> None:
"""Test removing entity."""
entry = configure_integration(hass)
Expand Down
13 changes: 13 additions & 0 deletions tests/components/reolink/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,19 @@ def register_callback(
assert hass.states.get(entity_id).state == STATE_OFF


async def test_baichaun_only(
hass: HomeAssistant,
reolink_connect: MagicMock,
config_entry: MockConfigEntry,
) -> None:
"""Test initializing a baichuan only device."""
reolink_connect.baichuan_only = True

with patch("homeassistant.components.reolink.PLATFORMS", [Platform.SWITCH]):
assert await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()


async def test_remove(
hass: HomeAssistant,
reolink_connect: MagicMock,
Expand Down
Loading
Loading