mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00

* Update Aseko to support new API * Apply suggestions from code review Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Use self.unit instead of self._unit * Refactor sensor setup entry * Keep same unique id and identifier * Revert rename free_chlorine translation key * Remove new heating entity to keep PR small * Fix keep same unique id --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
21 lines
395 B
Python
21 lines
395 B
Python
"""Aseko Pool Live conftest."""
|
|
|
|
from datetime import datetime
|
|
|
|
from aioaseko import User
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def user() -> User:
|
|
"""Aseko User fixture."""
|
|
return User(
|
|
user_id="a_user_id",
|
|
created_at=datetime.now(),
|
|
updated_at=datetime.now(),
|
|
name="John",
|
|
surname="Doe",
|
|
language="any_language",
|
|
is_active=True,
|
|
)
|