Skip to content

senxor.interface.registry

senxor.interface.registry

InterfaceRegistry

Registry for the interfaces.

register(name, device_class, interface_class) classmethod

Register a new interface.

Parameters:

Name Type Description Default
name
str

The name of the interface.

required
device_class
type[IDevice]

The class of the device.

required
interface_class
type[ISenxorInterface]

The class of the interface.

required

Returns:

Type Description
None

get(name) classmethod

Get the interface class by name.