mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-23 20:14:30 +02:00
Disable environment on routeros 7+ #73
This commit is contained in:
parent
cb01daa3a3
commit
7b137c0902
1 changed files with 5 additions and 1 deletions
|
@ -503,7 +503,11 @@ class MikrotikControllerData:
|
||||||
if self.api.connected() and self.option_sensor_simple_queues:
|
if self.api.connected() and self.option_sensor_simple_queues:
|
||||||
await self.hass.async_add_executor_job(self.get_queue)
|
await self.hass.async_add_executor_job(self.get_queue)
|
||||||
|
|
||||||
if self.api.connected() and self.option_sensor_environment:
|
if (
|
||||||
|
self.api.connected()
|
||||||
|
and self.option_sensor_environment
|
||||||
|
and 0 < self.major_fw_version < 7
|
||||||
|
):
|
||||||
await self.hass.async_add_executor_job(self.get_environment)
|
await self.hass.async_add_executor_job(self.get_environment)
|
||||||
|
|
||||||
async_dispatcher_send(self.hass, self.signal_update)
|
async_dispatcher_send(self.hass, self.signal_update)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue