Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the image integration."""
2 
3 from __future__ import annotations
4 
5 from typing import TYPE_CHECKING, Final
6 
7 from homeassistant.util.hass_dict import HassKey
8 
9 if TYPE_CHECKING:
10  from homeassistant.helpers.entity_component import EntityComponent
11 
12  from . import ImageEntity
13 
14 
15 DOMAIN: Final = "image"
16 DATA_COMPONENT: HassKey[EntityComponent[ImageEntity]] = HassKey(DOMAIN)
17 
18 IMAGE_TIMEOUT: Final = 10