caspia.gateway_mock package¶
Subpackages¶
- caspia.gateway_mock.services package
- Submodules
- caspia.gateway_mock.services.base module
- caspia.gateway_mock.services.blinds module
- caspia.gateway_mock.services.button module
- caspia.gateway_mock.services.fan module
- caspia.gateway_mock.services.light module
- caspia.gateway_mock.services.lockmechanism module
- caspia.gateway_mock.services.outlet module
- caspia.gateway_mock.services.temperature module
- Module contents
Submodules¶
caspia.gateway_mock.cli module¶
caspia.gateway_mock.gateway module¶
-
class
caspia.gateway_mock.gateway.CaspiaGateway(*, name, connection, config_path, storage_path)[source]¶ Bases:
caspia.meadow.client.gateway.Gateway-
add(services: Iterable[Union[GatewayServiceMixin, caspia.meadow.services.ServiceBase]], update_immediately=False)¶ Register service(s) for the gateway.
-
property
busy¶
-
property
connection¶
-
async
on_gateway_registered()¶
-
async
prepare()¶
-
remove(services: Iterable[Union[GatewayServiceMixin, caspia.meadow.services.ServiceBase]], update_immediately=False)¶ Remove service(s) from the gateway.
-
property
services¶ All registered services for the gateway.
-