"""
This type stub file was generated by pyright.
"""

from dataclasses import dataclass
from datetime import datetime, timedelta
from decimal import Decimal

import aiohttp
from _typeshed import Incomplete

from ..iregulapi import IRegulApiInterface
from ..models import MappedFrame

"""
This type stub file was generated by pyright.
"""
LOGGER: Incomplete

@dataclass
class IRegulData:
    id: str
    name: str
    value: Decimal
    unit: str
    ...

class CannotConnect(Exception): ...
class InvalidAuth(Exception): ...

class Device(IRegulApiInterface):
    login_url: str
    iregulApiBaseUrl: str
    lastupdate: datetime | None
    host: Incomplete
    port: Incomplete
    device_id: Incomplete
    password: Incomplete
    base_url: Incomplete
    refresh_rate: Incomplete
    main_url: Incomplete
    def __init__(
        self,
        http_session: aiohttp.ClientSession,
        host: str | None = ...,
        port: int | None = ...,
        device_id: str | None = ...,
        password: str | None = ...,
        refresh_rate: timedelta = ...,
    ) -> None: ...
    async def defrost(self) -> bool: ...
    async def get_data(self) -> MappedFrame | None: ...
    async def check_auth(self) -> bool: ...
