Skip to content

Commit

Permalink
fixed the productGroup.json path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleinrotti committed Mar 12, 2023
1 parent f6bab09 commit 35237ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/senertec/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
SENERTEC_POLL_SERVICE: Final = "senertec"
DEFAULT_NAME = "Senertec"
SENERTEC_URL = "https://dachsconnect.senertec.com"
if __debug__:
PRODUCTGROUPSPATH = os.getcwd() + "/config/custom_components/senertec/productGroups.json"
else:
PRODUCTGROUPSPATH = os.getcwd() + "/custom_components/senertec/productGroups.json"
PRODUCTGROUPSPATH = os.path.dirname(os.path.abspath(__file__)) + "/productGroups.json"

from homeassistant.const import (
CONF_EMAIL,
Expand Down

0 comments on commit 35237ce

Please sign in to comment.