mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-31 06:59:43 +02:00
added enable/disable interface switches
This commit is contained in:
parent
a3e6e5692b
commit
634db3f44e
2 changed files with 191 additions and 0 deletions
|
@ -60,6 +60,10 @@ async def async_setup_entry(hass, config_entry):
|
|||
hass.config_entries.async_forward_entry_setup(config_entry, "device_tracker")
|
||||
)
|
||||
|
||||
hass.async_create_task(
|
||||
hass.config_entries.async_forward_entry_setup(config_entry, "switch")
|
||||
)
|
||||
|
||||
device_registry = await hass.helpers.device_registry.async_get_registry()
|
||||
device_registry.async_get_or_create(
|
||||
config_entry_id=config_entry.entry_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue