Module homey.app

Classes

class App

The App class is your start point for any app. This class should be extended and exported as homey_export from app.py.

Example

from homey.app import App

class MyApp(App):
    """My Homey app"""

    async def on_init(self):
        self.log("MyApp has been initialized")

homey_export = MyApp

Ancestors

Instance variables

var homey : Final[Homey]

The Homey instance this app is running on.

var id : Final[str]

The ID of this app.

var manifest : Final[Any]

The app.json manifest of this app.

var sdk : Final[int]

The SDK version this app is using.

Methods

async def on_init(self) ‑> None

This method is called when initializing the app. It can be used for setup.

This method is expected to be overridden.

async def on_uninit(self) ‑> None

This method is called when unloading the app. It can be used for cleanup.

This method is expected to be overridden.

Inherited members