mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-26 02:38:47 +02:00
Modified kid-control switches to block/unblock traffic #70
This commit is contained in:
parent
1bdd8e81f6
commit
7dc9120b19
3 changed files with 80 additions and 6 deletions
|
@ -304,6 +304,13 @@ class MikrotikControllerData:
|
|||
"""Change value using Mikrotik API"""
|
||||
return self.api.update(path, param, value, mod_param, mod_value)
|
||||
|
||||
# ---------------------------
|
||||
# execute
|
||||
# ---------------------------
|
||||
def execute(self, path, command, param, value):
|
||||
"""Change value using Mikrotik API"""
|
||||
return self.api.execute(path, command, param, value)
|
||||
|
||||
# ---------------------------
|
||||
# run_script
|
||||
# ---------------------------
|
||||
|
@ -924,6 +931,7 @@ class MikrotikControllerData:
|
|||
{"name": "sat", "default": "None"},
|
||||
{"name": "sun", "default": "None"},
|
||||
{"name": "comment"},
|
||||
{"name": "paused", "type": "bool", "reverse": True},
|
||||
{
|
||||
"name": "enabled",
|
||||
"source": "disabled",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue