Reenabled environment variables for 7+ #73

This commit is contained in:
tomaae 2020-12-14 15:27:36 +01:00
parent ba99451244
commit d4d76e3089

View file

@ -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)