mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-13 10:54:33 +02:00
Fix for sensor type attr
This commit is contained in:
parent
32b93cc8cc
commit
e8d2efe956
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ class MikrotikAccountingSensor(MikrotikControllerSensor):
|
||||||
"""Return if controller and accounting feature in Mikrotik is available.
|
"""Return if controller and accounting feature in Mikrotik is available.
|
||||||
Additional check for lan-tx/rx sensors
|
Additional check for lan-tx/rx sensors
|
||||||
"""
|
"""
|
||||||
if self._sensor in ['lan-tx, lan-rx']:
|
if self._attr in ['lan-tx, lan-rx']:
|
||||||
return self._ctrl.connected() and self._data['available'] and self._data['local_accounting']
|
return self._ctrl.connected() and self._data['available'] and self._data['local_accounting']
|
||||||
else:
|
else:
|
||||||
return self._ctrl.connected() and self._data['available']
|
return self._ctrl.connected() and self._data['available']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue