Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions homeassistant/components/sensor/miflora.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
CONF_FORCE_UPDATE, CONF_MONITORED_CONDITIONS, CONF_NAME, CONF_MAC
)

REQUIREMENTS = ['miflora==0.1.16']
REQUIREMENTS = ['miflora==0.2.0']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -60,11 +60,12 @@
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the MiFlora sensor."""
from miflora import miflora_poller
from miflora.backends.gatttool import GatttoolBackend

cache = config.get(CONF_CACHE)
poller = miflora_poller.MiFloraPoller(
config.get(CONF_MAC), cache_timeout=cache,
adapter=config.get(CONF_ADAPTER))
adapter=config.get(CONF_ADAPTER), backend=GatttoolBackend)
force_update = config.get(CONF_FORCE_UPDATE)
median = config.get(CONF_MEDIAN)
poller.ble_timeout = config.get(CONF_TIMEOUT)
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ messagebird==1.2.0
mficlient==0.3.0

# homeassistant.components.sensor.miflora
miflora==0.1.16
miflora==0.2.0

# homeassistant.components.upnp
miniupnpc==2.0.2
Expand Down