leads.dt.device# Module Contents# Classes# Device ShadowDevice API# class leads.dt.device.Device(*pins: int | str)[source]# Bases: object Initialization __str__() → str[source]# level() → int[source]# Get the level of the device in the device tree. :return: the number of parents tag(tag: str | None = None) → str | None[source]# Set or get the tag of the device. The tag will not be set if it is locked. :param tag: the tag or None if getter mode :return: the tag or None if setter mode lock_tag() → None[source]# Lock the tag of the device. parent_tags() → tuple[str, ...][source]# Get the parent tags of the device. :return: the parent tags initialize(*parent_tags: str) → None[source]# abstractmethod read() → Any[source]# abstractmethod write(payload: Any) → None[source]# abstractmethod update(data: Any) → None[source]# close() → None[source]# class leads.dt.device.ShadowDevice(*pins: int | str)[source]# Bases: leads.dt.device.Device Initialization abstractmethod loop() → None[source]# run() → None[source]# initialize(*parent_tags: str) → None[source]#