refactor: rename project to LedGrab, split HA integration into separate repo
Lint & Test / test (push) Successful in 1m56s
Lint & Test / test (push) Successful in 1m56s
- Rename Python package: wled_controller -> ledgrab - Rename env var prefix: WLED_ -> LEDGRAB_ (with auto-migration for old vars) - Rename localStorage key: wled_api_key -> ledgrab_api_key (with migration) - Rename HA integration domain: wled_screen_controller -> ledgrab - Update all imports, build scripts, Docker, installer, config, docs - Remove HA integration (moved to ledgrab-haos-integration repo) - Remove hacs.json (belongs in HA repo now) - Add startup warning for users with old WLED_ env vars - All tests pass (715/715), ruff clean, tsc clean, frontend builds
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
"""Tests for configuration management."""
|
||||
|
||||
|
||||
import pytest
|
||||
import yaml
|
||||
|
||||
from wled_controller.config import (
|
||||
from ledgrab.config import (
|
||||
Config,
|
||||
ServerConfig,
|
||||
get_config,
|
||||
@@ -54,8 +53,8 @@ class TestFromYaml:
|
||||
|
||||
class TestEnvironmentVariables:
|
||||
def test_env_overrides(self, monkeypatch):
|
||||
monkeypatch.setenv("WLED_SERVER__HOST", "192.168.1.1")
|
||||
monkeypatch.setenv("WLED_SERVER__PORT", "7000")
|
||||
monkeypatch.setenv("LEDGRAB_SERVER__HOST", "192.168.1.1")
|
||||
monkeypatch.setenv("LEDGRAB_SERVER__PORT", "7000")
|
||||
config = Config()
|
||||
assert config.server.host == "192.168.1.1"
|
||||
assert config.server.port == 7000
|
||||
|
||||
Reference in New Issue
Block a user