Module homey.simple_class
Classes
class SimpleClass-
This is a simple class with log functions.
Ancestors
- EventEmitter
- typing.Generic
Subclasses
- App
- BleAdvertisement
- BleCharacteristic
- BleDescriptor
- BlePeripheral
- BleService
- CloudOAuth2Callback
- CloudWebhook
- Device
- DiscoveryResult
- DiscoveryStrategy
- Driver
- FlowArgument
- FlowCard
- Homey
- Manager
- Signal
- Widget
- WidgetSetting
- ZigbeeNode
- ZWaveCommandClass
- ZWaveNode
Methods
def log(self, *args: Any) ‑> None-
Log the given arguments, emitting a __log event.
def error(self, *args: Any) ‑> None-
Log the given arguments, emitting an __error event.
def debug(self, *args: Any) ‑> None-
Log the given arguments, emitting a __debug event.
def on_log(self, f: Callable[..., None]) ‑> Self-
The
__logevent is fired when theSimpleClass.log()method is called.Args
f- A callback that receives the positional arguments passed to
SimpleClass.log()
def on_error(self, f: Callable[..., None]) ‑> Self-
The
__errorevent is fired when theSimpleClass.error()method is called.Args
f- A callback that receives the positional arguments passed to
SimpleClass.error()
def on_debug(self, f: Callable[..., None]) ‑> Self-
The
__debugevent is fired when theSimpleClass.debug()method is called.Args
f- A callback that receives the positional arguments passed to
SimpleClass.debug()
Inherited members