diff --git a/homeassistant/components/sensor/miflora.py b/homeassistant/components/sensor/miflora.py index 37976151190..98cc7731d4d 100644 --- a/homeassistant/components/sensor/miflora.py +++ b/homeassistant/components/sensor/miflora.py @@ -16,7 +16,7 @@ from homeassistant.const import ( ) -REQUIREMENTS = ['miflora==0.3.0'] +REQUIREMENTS = ['miflora==0.4.0'] _LOGGER = logging.getLogger(__name__) @@ -63,10 +63,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None): from miflora import miflora_poller try: import bluepy.btle # noqa: F401 # pylint: disable=unused-variable - from miflora.backends.bluepy import BluepyBackend + from btlewrap import BluepyBackend backend = BluepyBackend except ImportError: - from miflora.backends.gatttool import GatttoolBackend + from btlewrap import GatttoolBackend backend = GatttoolBackend _LOGGER.debug('Miflora is using %s backend.', backend.__name__) @@ -138,7 +138,7 @@ class MiFloraSensor(Entity): This uses a rolling median over 3 values to filter out outliers. """ - from miflora.backends import BluetoothBackendException + from btlewrap import BluetoothBackendException try: _LOGGER.debug("Polling data for %s", self.name) data = self.poller.parameter_value(self.parameter) diff --git a/requirements_all.txt b/requirements_all.txt index 87cb0ccf7e1..ccfaf0b35a1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -525,7 +525,7 @@ messagebird==1.2.0 mficlient==0.3.0 # homeassistant.components.sensor.miflora -miflora==0.3.0 +miflora==0.4.0 # homeassistant.components.sensor.mopar motorparts==1.0.2