From ffcfb6f970dea037ce1e8e7045dfe410c321213b Mon Sep 17 00:00:00 2001 From: balgerion <133121849+balgerion@users.noreply.github.com> Date: Sun, 27 Apr 2025 23:03:49 +0200 Subject: [PATCH] Create const.py --- custom_components/const.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 custom_components/const.py diff --git a/custom_components/const.py b/custom_components/const.py new file mode 100644 index 0000000..5bac63d --- /dev/null +++ b/custom_components/const.py @@ -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"