_device_type_before_load_

From Yombo
< docs‎ | hooks
Jump to: navigation, search
device_type_before_load
Hook name _device_type_before_load_
Status Active
Hook source type Library
Stop on exception No
Commonly used No
Implemented by device types

Summary

Called if device type doesn't exist already in system, before _device_type_loaded_.

Details

If the device type doesn't exist in the system, this hook called before it's loaded. This hook is called after _device_types_before_import_, while the _device_type_loaded_ hook is called afterwards.

This hook will continue to run regardless of exception thrown.

See also

KWargs

  • called_by (ref) - Reference to the device types library.
  • device_type_id - (str) Device type ID.
  • device_type - (dict) Of values for the device type.

Expects

Not expecting any data returned.


This page was last edited on 15 September 2018.