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