senxor.interface.registry
InterfaceRegistry
Registry for the interfaces.
register(name, device_class, interface_class)
classmethod
Register a new interface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The name of the interface. |
required |
|
type[IDevice]
|
The class of the device. |
required |
|
type[ISenxorInterface]
|
The class of the interface. |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
get(name)
classmethod
Get the interface class by name.