Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ generate-token = "dirigera.hub.auth:main"

[project.urls]
Homepage = "https://github.com/Leggin/dirigera"

[tool.setuptools.package-data]
dirigera = ["py.typed"]
80 changes: 80 additions & 0 deletions src/dirigera/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,81 @@
from .hub.hub import Hub
from .devices.adaptive_profile import (
AdaptiveProfile,
AdaptiveProfileState,
AdaptiveScheduleEntry,
)
from .devices.air_purifier import FanModeEnum, AirPurifierAttributes, AirPurifier
from .devices.blinds import BlindsStateEnum, BlindAttributes, Blind
from .devices.controller import Controller, ControllerAttributes
from .devices.device import StartupEnum, Room, Device
from .devices.electrical_sensor import ElectricalSensor, ElectricalSensorAttributes
from .devices.environment_sensor import EnvironmentSensor, EnvironmentSensorAttributes
from .devices.light import Light, LightAttributes
from .devices.light_sensor import LightSensor, LightSensorAttributes
from .devices.motion_sensor import MotionSensor, MotionSensorAttributes
from .devices.occupancy_sensor import OccupancySensor, OccupancySensorAttributes
from .devices.open_close_sensor import OpenCloseSensor, OpenCloseSensorAttributes
from .devices.outlet import Outlet, OutletAttributes
from .devices.scene import (
SceneAttributes,
Icon,
Info,
EndTriggerEvent,
Trigger,
TriggerDetails,
ControllerType,
ClickPattern,
ActionAttributes,
Action,
SceneType,
Scene,
)
from .devices.water_sensor import WaterSensor, WaterSensorAttributes

__all__ = [
"Hub",
"AdaptiveProfile",
"AdaptiveProfileState",
"AdaptiveScheduleEntry",
"FanModeEnum",
"AirPurifierAttributes",
"AirPurifier",
"BlindsStateEnum",
"BlindAttributes",
"Blind",
"Controller",
"ControllerAttributes",
"StartupEnum",
"Room",
"Device",
"ElectricalSensor",
"ElectricalSensorAttributes",
"EnvironmentSensor",
"EnvironmentSensorAttributes",
"Light",
"LightAttributes",
"LightSensor",
"LightSensorAttributes",
"MotionSensor",
"MotionSensorAttributes",
"OccupancySensor",
"OccupancySensorAttributes",
"OpenCloseSensor",
"OpenCloseSensorAttributes",
"Outlet",
"OutletAttributes",
"SceneAttributes",
"Icon",
"Info",
"EndTriggerEvent",
"Trigger",
"TriggerDetails",
"ControllerType",
"ClickPattern",
"ActionAttributes",
"Action",
"SceneType",
"Scene",
"WaterSensor",
"WaterSensorAttributes",
]
Empty file added src/dirigera/py.typed
Empty file.
6 changes: 6 additions & 0 deletions tests/test_public_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from src import dirigera


def test_all_exported_names_exist() -> None:
for name in dirigera.__all__:
assert hasattr(dirigera, name), name
Loading