mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-16 04:14:31 +02:00
pylint consistency
This commit is contained in:
parent
8769c322a3
commit
a6e6f4c697
3 changed files with 28 additions and 16 deletions
|
@ -141,13 +141,13 @@ class MikrotikControllerPortDeviceTracker(ScannerEntity):
|
|||
@property
|
||||
def icon(self):
|
||||
"""Return the icon."""
|
||||
if not self.mikrotik_controller.data['interface'][self._uid]['enabled']:
|
||||
return 'mdi:lan-disconnect'
|
||||
|
||||
icon = 'mdi:lan-disconnect'
|
||||
if self.mikrotik_controller.data['interface'][self._uid]['running']:
|
||||
return 'mdi:lan-connect'
|
||||
icon = 'mdi:lan-connect'
|
||||
else:
|
||||
return 'mdi:lan-pending'
|
||||
icon = 'mdi:lan-pending'
|
||||
|
||||
return icon
|
||||
|
||||
@property
|
||||
def device_info(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue