mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-24 17:58:47 +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:
|
||||
await self.hass.async_add_executor_job(self.get_queue)
|
||||
|
||||
if (
|
||||
self.api.connected()
|
||||
and self.option_sensor_environment
|
||||
and 0 < self.major_fw_version < 7
|
||||
):
|
||||
if self.api.connected() and self.option_sensor_environment:
|
||||
await self.hass.async_add_executor_job(self.get_environment)
|
||||
|
||||
async_dispatcher_send(self.hass, self.signal_update)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue