ManagerImages
homey.manager.images
Manages images used by the app.
You can access this manager through the Homey instance as self.homey.images.
Ancestors
- Manager
- SimpleClass
- homey.util.event_emitter.EventEmitter
- typing.Generic
- abc.ABC
Methods
create_image
async def create_image(self) ‑> ImageCreate an image instance.
get_image
def get_image(self, id: str) ‑> ImageGet the image with the given ID.
Raises
NotFound- Raised if no image with the given ID is found.
unregister_image
async def unregister_image(self, image: Image) ‑> NoneUnregister the given image.
Args
| Name | Type | Description |
|---|---|---|
image |
Image | The Image to unregister. |
Raises
NotRegistered- Raised if the image is not registered.