mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Bump kaleidescape requirement version to v1.0.2 (#158068)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/kaleidescape",
|
||||
"iot_class": "local_push",
|
||||
"requirements": ["pykaleidescape==1.0.1"],
|
||||
"requirements": ["pykaleidescape==1.0.2"],
|
||||
"ssdp": [
|
||||
{
|
||||
"deviceType": "schemas-upnp-org:device:Basic:1",
|
||||
|
||||
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -2130,7 +2130,7 @@ pyituran==0.1.5
|
||||
pyjvcprojector==1.1.2
|
||||
|
||||
# homeassistant.components.kaleidescape
|
||||
pykaleidescape==1.0.1
|
||||
pykaleidescape==1.0.2
|
||||
|
||||
# homeassistant.components.kira
|
||||
pykira==0.1.1
|
||||
|
||||
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -1795,7 +1795,7 @@ pyituran==0.1.5
|
||||
pyjvcprojector==1.1.2
|
||||
|
||||
# homeassistant.components.kaleidescape
|
||||
pykaleidescape==1.0.1
|
||||
pykaleidescape==1.0.2
|
||||
|
||||
# homeassistant.components.kira
|
||||
pykira==0.1.1
|
||||
|
||||
@@ -5,6 +5,7 @@ from unittest.mock import MagicMock
|
||||
import pytest
|
||||
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
|
||||
@@ -45,6 +46,21 @@ async def test_config_entry_not_ready(
|
||||
assert mock_config_entry.state is ConfigEntryState.SETUP_RETRY
|
||||
|
||||
|
||||
async def test_disconnect_on_hass_stop(
|
||||
hass: HomeAssistant,
|
||||
mock_device: MagicMock,
|
||||
mock_integration: MockConfigEntry,
|
||||
) -> None:
|
||||
"""Test device disconnects when Home Assistant stops."""
|
||||
assert mock_integration.state is ConfigEntryState.LOADED
|
||||
assert mock_device.disconnect.call_count == 0
|
||||
|
||||
hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert mock_device.disconnect.call_count == 1
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("mock_device", "mock_integration")
|
||||
async def test_device(device_registry: dr.DeviceRegistry) -> None:
|
||||
"""Test device."""
|
||||
|
||||
Reference in New Issue
Block a user