Skip to content

Commit 38d1817

Browse files
Fix const
1 parent dfcbbad commit 38d1817

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

  • custom_components/periodic_min_max

custom_components/periodic_min_max/const.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
"""Constants for periodic_min_max."""
22

3-
import json
43
from logging import Logger, getLogger
5-
from pathlib import Path
64

75
from homeassistant.const import Platform
86

97
LOGGER: Logger = getLogger(__package__)
108

119
MIN_HA_VERSION = "2025.10"
1210

13-
manifestfile = Path(__file__).parent / "manifest.json"
14-
with open(file=manifestfile, encoding="UTF-8") as json_file:
15-
manifest_data = json.load(json_file)
16-
17-
DOMAIN = manifest_data.get("domain")
18-
NAME = manifest_data.get("name")
19-
VERSION = manifest_data.get("version")
20-
ISSUEURL = manifest_data.get("issue_tracker")
11+
DOMAIN = "periodic_min_max"
2112
CONFIG_VERSION = 1
2213

2314
PLATFORMS = [Platform.SENSOR]

0 commit comments

Comments
 (0)