mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-24 19:04:19 +02:00
Test HA core v2023.6 until v2024.2 (#942)
* Test HA core v2023.6 until v2024.2
* Use Python 3.12
* Add components.ffmpeg
* Revert "VS Code Dev Container (dev & test environment) (#605)"
This reverts commit 6283158ff7.
* Fix
* revert
* fi
* simplify
* Fix
* fixes
* fix
* rev
* Rename test
* fix
* fix all
* fix
* revert
This commit is contained in:
parent
e4e1aa7d37
commit
9eae1501d3
10 changed files with 104 additions and 101 deletions
|
|
@ -3,15 +3,7 @@
|
|||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
ATTR_COLOR_TEMP_KELVIN,
|
||||
ATTR_TRANSITION,
|
||||
)
|
||||
from homeassistant.const import ATTR_ENTITY_ID, STATE_ON
|
||||
from homeassistant.core import Context, State
|
||||
|
||||
from custom_components.adaptive_lighting.adaptation_utils import (
|
||||
from homeassistant.components.adaptive_lighting.adaptation_utils import (
|
||||
ServiceData,
|
||||
_create_service_call_data_iterator,
|
||||
_has_relevant_service_data_attributes,
|
||||
|
|
@ -19,6 +11,13 @@ from custom_components.adaptive_lighting.adaptation_utils import (
|
|||
_split_service_call_data,
|
||||
prepare_adaptation_data,
|
||||
)
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
ATTR_COLOR_TEMP_KELVIN,
|
||||
ATTR_TRANSITION,
|
||||
)
|
||||
from homeassistant.const import ATTR_ENTITY_ID, STATE_ON
|
||||
from homeassistant.core import Context, State
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
@ -130,7 +129,7 @@ async def test_has_relevant_service_data_attributes(
|
|||
service_data: ServiceData,
|
||||
expected_relevant: bool,
|
||||
):
|
||||
"""Test the determination of relevancy of service data"""
|
||||
"""Test the determination of relevancy of service data."""
|
||||
assert _has_relevant_service_data_attributes(service_data) == expected_relevant
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue