Improve available for Mill heater (#18597)

* improve available for Mill heater

* typo
This commit is contained in:
Daniel Høyer Iversen 2018-11-20 20:00:13 +01:00 committed by Martin Hjelmare
parent e87ecbd500
commit 8742750926
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ from homeassistant.const import (
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
REQUIREMENTS = ['millheater==0.2.7']
REQUIREMENTS = ['millheater==0.2.8']
_LOGGER = logging.getLogger(__name__)
@ -98,7 +98,7 @@ class MillHeater(ClimateDevice):
@property
def available(self):
"""Return True if entity is available."""
return self._heater.device_status == 0 # weird api choice
return self._heater.available
@property
def unique_id(self):

View File

@ -634,7 +634,7 @@ mficlient==0.3.0
miflora==0.4.0
# homeassistant.components.climate.mill
millheater==0.2.7
millheater==0.2.8
# homeassistant.components.sensor.mitemp_bt
mitemp_bt==0.0.1