We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c6c14 commit 6b0c141Copy full SHA for 6b0c141
1 file changed
custom_components/label_state/const.py
@@ -1,24 +1,15 @@
1
"""Constants for label_state."""
2
3
-import json
4
from enum import StrEnum
5
from logging import Logger, getLogger
6
-from pathlib import Path
7
8
from homeassistant.const import Platform
9
10
LOGGER: Logger = getLogger(__package__)
11
12
MIN_HA_VERSION = "2025.11"
13
14
-manifestfile = Path(__file__).parent / "manifest.json"
15
-with open(file=manifestfile, encoding="UTF-8") as json_file:
16
- manifest_data = json.load(json_file)
17
-
18
-DOMAIN = manifest_data.get("domain")
19
-NAME = manifest_data.get("name")
20
-VERSION = manifest_data.get("version")
21
-ISSUEURL = manifest_data.get("issue_tracker")
+DOMAIN = "label_state"
22
CONFIG_VERSION = 1
23
24
PLATFORMS = [Platform.BINARY_SENSOR]
0 commit comments