mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 04:54:29 +02:00
Reenabled environment variables for 7+ #73
This commit is contained in:
parent
ba99451244
commit
d4d76e3089
1 changed files with 1 additions and 5 deletions
|
@ -502,11 +502,7 @@ 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 (
|
if self.api.connected() and self.option_sensor_environment:
|
||||||
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