Skip to content

Commit 6b0c141

Browse files
Fix const
1 parent 42c6c14 commit 6b0c141

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

custom_components/label_state/const.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
"""Constants for label_state."""
22

3-
import json
43
from enum import StrEnum
54
from logging import Logger, getLogger
6-
from pathlib import Path
75

86
from homeassistant.const import Platform
97

108
LOGGER: Logger = getLogger(__package__)
119

1210
MIN_HA_VERSION = "2025.11"
1311

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")
12+
DOMAIN = "label_state"
2213
CONFIG_VERSION = 1
2314

2415
PLATFORMS = [Platform.BINARY_SENSOR]

0 commit comments

Comments
 (0)