Rename custom_components/const.py to custom_components/pstryk/const.py

This commit is contained in:
balgerion
2025-04-27 23:18:39 +02:00
committed by GitHub
parent 3ee66cb6ae
commit 6e1ac63a06

View File

@ -0,0 +1,10 @@
DOMAIN = "pstryk"
API_URL = "https://api.pstryk.pl/integrations/"
API_TIMEOUT = 10
BUY_ENDPOINT = "pricing/?resolution=hour&window_start={start}&window_end={end}"
SELL_ENDPOINT = "prosumer-pricing/?resolution=hour&window_start={start}&window_end={end}"
ATTR_BUY_PRICE = "buy_price"
ATTR_SELL_PRICE = "sell_price"
ATTR_HOURS = "hours"