Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mill room temp #18203

Merged
merged 3 commits into from Nov 5, 2018
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 8 additions & 7 deletions homeassistant/components/climate/mill.py
Expand Up @@ -19,7 +19,7 @@
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession

REQUIREMENTS = ['millheater==0.2.2']
REQUIREMENTS = ['millheater==0.2.3']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -112,16 +112,17 @@ def name(self):
@property
def device_state_attributes(self):
"""Return the state attributes."""
if self._heater.room:
room = self._heater.room.name
else:
room = "Independent device"
return {
"room": room,
res = {
"open_window": self._heater.open_window,
"heating": self._heater.is_heating,
"controlled_by_tibber": self._heater.tibber_control,
}
if self._heater.room:
res['room'] = self._heater.room.name
res['avg_room_temp'] = self._heater.room.avg_temp
else:
res['room'] = "Independent device"
return res

@property
def temperature_unit(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -619,7 +619,7 @@ mficlient==0.3.0
miflora==0.4.0

# homeassistant.components.climate.mill
millheater==0.2.2
millheater==0.2.3

# homeassistant.components.sensor.mitemp_bt
mitemp_bt==0.0.1
Expand Down