diff --git a/homeassistant/components/camera/synology.py b/homeassistant/components/camera/synology.py index be01a7fc90d..0b97f55397c 100644 --- a/homeassistant/components/camera/synology.py +++ b/homeassistant/components/camera/synology.py @@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import ( async_aiohttp_proxy_web) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['py-synology==0.1.1'] +REQUIREMENTS = ['py-synology==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cover/rflink.py b/homeassistant/components/cover/rflink.py index 45a0b27aa07..a9b7598159f 100644 --- a/homeassistant/components/cover/rflink.py +++ b/homeassistant/components/cover/rflink.py @@ -103,6 +103,11 @@ class RflinkCover(RflinkCommand, CoverDevice): """No polling available in RFlink cover.""" return False + @property + def is_closed(self): + """Return if the cover is closed.""" + return None + def async_close_cover(self, **kwargs): """Turn the device close.""" return self._async_handle_command("close_cover") diff --git a/homeassistant/components/device_tracker/owntracks.py b/homeassistant/components/device_tracker/owntracks.py index 07dc9f1ab5c..f301b2f454e 100644 --- a/homeassistant/components/device_tracker/owntracks.py +++ b/homeassistant/components/device_tracker/owntracks.py @@ -407,7 +407,8 @@ def async_handle_message(hass, context, message): handler = HANDLERS.get(msgtype) if handler is None: - error = 'Received unsupported message type: {}.'.format(msgtype) - _LOGGER.warning(error) + _LOGGER.warning( + 'Received unsupported message type: %s.', msgtype) + return yield from handler(hass, context, message) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 112c93403b0..1820dcdc3f6 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -329,6 +329,7 @@ class IndexView(HomeAssistantView): from jinja2 import FileSystemLoader, Environment self.templates = Environment( + autoescape=True, loader=FileSystemLoader( os.path.join(os.path.dirname(__file__), 'templates/') ) diff --git a/homeassistant/components/google.py b/homeassistant/components/google.py index 889c905613f..efb2b12bfca 100644 --- a/homeassistant/components/google.py +++ b/homeassistant/components/google.py @@ -269,7 +269,7 @@ def load_config(path): calendars = {} try: with open(path) as file: - data = yaml.load(file) + data = yaml.safe_load(file) for calendar in data: try: calendars.update({calendar[CONF_CAL_ID]: diff --git a/homeassistant/components/light/tradfri.py b/homeassistant/components/light/tradfri.py index 3efab8309fc..f4feb4b7adf 100644 --- a/homeassistant/components/light/tradfri.py +++ b/homeassistant/components/light/tradfri.py @@ -105,7 +105,7 @@ class TradfriGroup(Light): """Instruct the group lights to turn on, or dim.""" keys = {} if ATTR_TRANSITION in kwargs: - keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) + keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10 if ATTR_BRIGHTNESS in kwargs: self.hass.async_add_job(self._api( @@ -259,7 +259,7 @@ class TradfriLight(Light): keys = {} if ATTR_TRANSITION in kwargs: - keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) + keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10 if ATTR_BRIGHTNESS in kwargs: self.hass.async_add_job(self._api( diff --git a/homeassistant/components/media_player/liveboxplaytv.py b/homeassistant/components/media_player/liveboxplaytv.py index 43678d90829..594e9b20432 100644 --- a/homeassistant/components/media_player/liveboxplaytv.py +++ b/homeassistant/components/media_player/liveboxplaytv.py @@ -18,10 +18,10 @@ from homeassistant.components.media_player import ( MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA) from homeassistant.const import ( CONF_HOST, CONF_PORT, STATE_ON, STATE_OFF, STATE_PLAYING, - STATE_PAUSED, STATE_UNKNOWN, CONF_NAME) + STATE_PAUSED, CONF_NAME) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['liveboxplaytv==1.4.9'] +REQUIREMENTS = ['liveboxplaytv==1.5.0'] _LOGGER = logging.getLogger(__name__) @@ -72,7 +72,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice): self._muted = False self._name = name self._current_source = None - self._state = STATE_UNKNOWN + self._state = None self._channel_list = {} self._current_channel = None self._current_program = None @@ -92,7 +92,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice): self._client.get_current_channel_image(img_size=300) self.refresh_channel_list() except requests.ConnectionError: - self._state = STATE_OFF + self._state = None @property def name(self): diff --git a/homeassistant/const.py b/homeassistant/const.py index 33c91eeb067..30b81385877 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 55 -PATCH_VERSION = '0' +PATCH_VERSION = '1' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 4, 2) diff --git a/requirements_all.txt b/requirements_all.txt index a04a4240ae4..6bbc87aed06 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -398,7 +398,7 @@ lightify==1.0.6 limitlessled==1.0.8 # homeassistant.components.media_player.liveboxplaytv -liveboxplaytv==1.4.9 +liveboxplaytv==1.5.0 # homeassistant.components.lametric # homeassistant.components.notify.lametric @@ -540,7 +540,7 @@ pwmled==1.2.1 py-cpuinfo==3.3.0 # homeassistant.components.camera.synology -py-synology==0.1.1 +py-synology==0.1.3 # homeassistant.components.hdmi_cec pyCEC==0.4.13