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:
@@ -2,8 +2,8 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from wled_controller.storage.sync_clock import SyncClock
|
||||
from wled_controller.storage.sync_clock_store import SyncClockStore
|
||||
from ledgrab.storage.sync_clock import SyncClock
|
||||
from ledgrab.storage.sync_clock_store import SyncClockStore
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -54,9 +54,7 @@ class TestSyncClockStoreCRUD:
|
||||
assert store.count() == 1
|
||||
|
||||
def test_create_clock_with_options(self, store):
|
||||
c = store.create_clock(
|
||||
name="Fast", speed=5.0, description="speedy", tags=["anim"]
|
||||
)
|
||||
c = store.create_clock(name="Fast", speed=5.0, description="speedy", tags=["anim"])
|
||||
assert c.speed == 5.0
|
||||
assert c.description == "speedy"
|
||||
assert c.tags == ["anim"]
|
||||
@@ -149,7 +147,8 @@ class TestSyncClockNameUniqueness:
|
||||
|
||||
class TestSyncClockPersistence:
|
||||
def test_persist_and_reload(self, tmp_path):
|
||||
from wled_controller.storage.database import Database
|
||||
from ledgrab.storage.database import Database
|
||||
|
||||
db = Database(tmp_path / "sc_persist.db")
|
||||
s1 = SyncClockStore(db)
|
||||
c = s1.create_clock(name="Persist", speed=2.5)
|
||||
|
||||
Reference in New Issue
Block a user