Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/modules/consumers/generic/http/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def initializer():
nonlocal session, sim_counter
nonlocal get_power, get_imported, get_exported, get_currents, get_temperatures
nonlocal post_set_power_limit, post_switch_on, post_switch_off
if not config.configuration.url.startswith('https://'):
raise ValueError("Only HTTPS URLs allowed for security")
session = req.get_http_session()
sim_counter = SimCounterConsumer(config.id, ComponentType.CONSUMER)

Expand Down
2 changes: 0 additions & 2 deletions packages/modules/consumers/generic/json/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def post_function(params: dict):
def initializer():
nonlocal session, sim_counter
nonlocal jq_set_power_limit, jq_switch_on, jq_switch_off
if not config.configuration.url.startswith('https://'):
raise ValueError("Only HTTPS URLs allowed for security")
session = req.get_http_session()
sim_counter = SimCounterConsumer(config.id, ComponentType.CONSUMER)

Expand Down