mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Fix PYTHONPATH
This commit is contained in:
parent
f6c9d138c5
commit
a9428ed936
4 changed files with 6 additions and 6 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -35,4 +35,4 @@ jobs:
|
|||
- name: Run pytest
|
||||
timeout-minutes: 60
|
||||
run: |
|
||||
pytest tests
|
||||
PYTHONPATH=${PYTHONPATH}:custom_components/:homeassistant/tests pytest tests
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""Test Adaptive Lighting config flow."""
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components.adaptive_lighting.const import (
|
||||
from adaptive_lighting.const import (
|
||||
CONF_SUNRISE_TIME,
|
||||
CONF_SUNSET_TIME,
|
||||
DEFAULT_NAME,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""Tests for Adaptive Lighting integration."""
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import adaptive_lighting
|
||||
from homeassistant.components.adaptive_lighting.const import (
|
||||
import adaptive_lighting
|
||||
from adaptive_lighting.const import (
|
||||
DEFAULT_NAME,
|
||||
UNDO_UPDATE_LISTENER,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from random import randint
|
|||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.adaptive_lighting.const import (
|
||||
from adaptive_lighting.const import (
|
||||
ADAPT_BRIGHTNESS_SWITCH,
|
||||
ADAPT_COLOR_SWITCH,
|
||||
ATTR_TURN_ON_OFF_LISTENER,
|
||||
|
|
@ -31,7 +31,7 @@ from homeassistant.components.adaptive_lighting.const import (
|
|||
SLEEP_MODE_SWITCH,
|
||||
UNDO_UPDATE_LISTENER,
|
||||
)
|
||||
from homeassistant.components.adaptive_lighting.switch import (
|
||||
from adaptive_lighting.switch import (
|
||||
_attributes_have_changed,
|
||||
_expand_light_groups,
|
||||
color_difference_redmean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue