mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-24 09:48:53 +02:00
Migrated to new entity naming style
This commit is contained in:
parent
1a0861fd9c
commit
0b4a7a3c72
8 changed files with 37 additions and 37 deletions
|
@ -168,14 +168,6 @@ class MikrotikPortSwitch(MikrotikSwitch):
|
|||
class MikrotikNATSwitch(MikrotikSwitch):
|
||||
"""Representation of a NAT switch."""
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name."""
|
||||
if self._data["comment"]:
|
||||
return f"{self._inst} NAT {self._data['comment']}"
|
||||
|
||||
return f"{self._inst} NAT {self._data['name']}"
|
||||
|
||||
async def async_turn_on(self) -> None:
|
||||
"""Turn on the switch."""
|
||||
path = self.entity_description.data_switch_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue