mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-25 18:28:46 +02:00
added support for overriding zone name in device_tracker
This commit is contained in:
parent
6129e18cc3
commit
873d18e60a
4 changed files with 32 additions and 1 deletions
|
@ -24,6 +24,8 @@ from homeassistant.const import (
|
|||
CONF_USERNAME,
|
||||
CONF_PASSWORD,
|
||||
CONF_SSL,
|
||||
CONF_ZONE,
|
||||
STATE_HOME,
|
||||
)
|
||||
|
||||
from .const import (
|
||||
|
@ -311,6 +313,17 @@ class MikrotikControllerData:
|
|||
CONF_UNIT_OF_MEASUREMENT, DEFAULT_UNIT_OF_MEASUREMENT
|
||||
)
|
||||
|
||||
# ---------------------------
|
||||
# option_zone
|
||||
# ---------------------------
|
||||
@property
|
||||
def option_zone(self):
|
||||
"""Config entry option to not track ARP."""
|
||||
return self.config_entry.options.get(
|
||||
CONF_ZONE, STATE_HOME
|
||||
)
|
||||
|
||||
|
||||
# ---------------------------
|
||||
# signal_update
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue