Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Jul 23, 2023
1 parent 41df9f4 commit 4fc6902
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions custom_components/mastodon_profile_stats/const.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
"""Constants for mastodon_profile_stats."""
import json
from logging import Logger, getLogger
from pathlib import Path

LOGGER: Logger = getLogger(__package__)

NAME = "Mastodon Profile Stats"
DOMAIN = "mastodon_profile_stats"
VERSION = "1.0.2"
manifestfile = Path(__file__).parent / "manifest.json"
with open(file=manifestfile, encoding="UTF-8") as json_file:
manifest_data = json.load(json_file)

DOMAIN = manifest_data.get("domain")
NAME = manifest_data.get("name")
VERSION = manifest_data.get("version")
ISSUEURL = manifest_data.get("issue_tracker")
MANUFACTURER = "@Andrew-CodeChimp"
2 changes: 1 addition & 1 deletion custom_components/mastodon_profile_stats/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"documentation": "https://github.com/andrew-codechimp/ha-mastodon_profile_stats",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/andrew-codechimp/ha-mastodon_profile_stats/issues",
"version": "1.0.2"
"version": "1.0.3"
}

0 comments on commit 4fc6902

Please sign in to comment.