Migrated to new entity naming style

This commit is contained in:
Tomaae 2022-08-18 09:29:55 +02:00
parent 1a0861fd9c
commit 0b4a7a3c72
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0
8 changed files with 37 additions and 37 deletions

View file

@ -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