Type annotations for the Homey SDK
Project description
homey-stubs
Type annotations for the Homey SDK
Static type-checkers
These types have been tested with:
- Pyright version 1.1.406
A static type-checking package is not required, however, and these stubs will still improve autocomplete suggestions and error detection in your IDE if you don't install one.
Example
The following example illustrates some situations that will be caught by pyright.
from homey.driver import Driver
from homey.flow_card_trigger_device import FlowCardTriggerDevice
class MyDriver(Driver):
async def on_init(self) -> None:
# Type "FlowCardTrigger" is not assignable to declared type "FlowCardTriggerDevice"
trigger_card: FlowCardTriggerDevice = self.homey.flow.get_trigger_card("something_happens")
some_token = await self.homey.flow.create_token("some_token", "number", "Some token")
# Type "Literal['value']" is not assignable to type "float | None"
await some_token.set_value("value")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file homey_stubs-0.0.1.0-py3-none-any.whl.
File metadata
- Download URL: homey_stubs-0.0.1.0-py3-none-any.whl
- Upload date:
- Size: 51.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c21ce651c7a9e75500f745dc395582afdf68ada5e2550b0d1c4e2bc9fc6067d5
|
|
| MD5 |
a31e7af49e9ad90b5a907f8c287e199e
|
|
| BLAKE2b-256 |
e62e488a65be20747ff35652afb412a82012eb67f89a69d98a2e308e5c3fd4d2
|
Provenance
The following attestation bundles were made for homey_stubs-0.0.1.0-py3-none-any.whl:
Publisher:
stubs-publish.yml on athombv/python-homey-apps-sdk-v3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
homey_stubs-0.0.1.0-py3-none-any.whl -
Subject digest:
c21ce651c7a9e75500f745dc395582afdf68ada5e2550b0d1c4e2bc9fc6067d5 - Sigstore transparency entry: 752726621
- Sigstore integration time:
-
Permalink:
athombv/python-homey-apps-sdk-v3@7ff742f5c62050ae21a90d3b1e711e85e84bd1d9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/athombv
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
stubs-publish.yml@7ff742f5c62050ae21a90d3b1e711e85e84bd1d9 -
Trigger Event:
workflow_dispatch
-
Statement type: