mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-24 04:24:29 +02:00
poe variable check for virtual interfaces #100
This commit is contained in:
parent
ae3feb499e
commit
5fd9005811
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class MikrotikControllerPortSwitch(MikrotikControllerSwitch):
|
|||
mod_value = False
|
||||
self._ctrl.set_value(path, param, value, mod_param, mod_value)
|
||||
|
||||
if self._data["poe-out"] == "off":
|
||||
if "poe-out" in self._data and self._data["poe-out"] == "off":
|
||||
path = "/interface/ethernet"
|
||||
self._ctrl.set_value(path, param, value, "poe-out", "auto-on")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue