Module homey.widget_setting
Classes
class WidgetSetting-
A setting for a widget, as defined in
app.json.This class must not be initialized by the developer, but retrieved by calling
Widget.get_setting().Ancestors
- SimpleClass
- EventEmitter
- typing.Generic
Methods
def register_autocomplete_listener(self, listener: SettingAutoCompleteListener) ‑> None-
Register an autocomplete listener for this setting.
Args
listener- An async
SettingAutoCompleteListenerfor when an autocomplete value is requested for this setting. It receives the query typed by the user, as well as any settings in the widget, as currently selected by the user.
Raises
AlreadyExists- Raised if a listener was already registered for this setting.
Inherited members