mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
commit
c6b285c666
@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import (
|
|||||||
async_aiohttp_proxy_web)
|
async_aiohttp_proxy_web)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['py-synology==0.1.1']
|
REQUIREMENTS = ['py-synology==0.1.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -103,6 +103,11 @@ class RflinkCover(RflinkCommand, CoverDevice):
|
|||||||
"""No polling available in RFlink cover."""
|
"""No polling available in RFlink cover."""
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_closed(self):
|
||||||
|
"""Return if the cover is closed."""
|
||||||
|
return None
|
||||||
|
|
||||||
def async_close_cover(self, **kwargs):
|
def async_close_cover(self, **kwargs):
|
||||||
"""Turn the device close."""
|
"""Turn the device close."""
|
||||||
return self._async_handle_command("close_cover")
|
return self._async_handle_command("close_cover")
|
||||||
|
@ -407,7 +407,8 @@ def async_handle_message(hass, context, message):
|
|||||||
handler = HANDLERS.get(msgtype)
|
handler = HANDLERS.get(msgtype)
|
||||||
|
|
||||||
if handler is None:
|
if handler is None:
|
||||||
error = 'Received unsupported message type: {}.'.format(msgtype)
|
_LOGGER.warning(
|
||||||
_LOGGER.warning(error)
|
'Received unsupported message type: %s.', msgtype)
|
||||||
|
return
|
||||||
|
|
||||||
yield from handler(hass, context, message)
|
yield from handler(hass, context, message)
|
||||||
|
@ -329,6 +329,7 @@ class IndexView(HomeAssistantView):
|
|||||||
from jinja2 import FileSystemLoader, Environment
|
from jinja2 import FileSystemLoader, Environment
|
||||||
|
|
||||||
self.templates = Environment(
|
self.templates = Environment(
|
||||||
|
autoescape=True,
|
||||||
loader=FileSystemLoader(
|
loader=FileSystemLoader(
|
||||||
os.path.join(os.path.dirname(__file__), 'templates/')
|
os.path.join(os.path.dirname(__file__), 'templates/')
|
||||||
)
|
)
|
||||||
|
@ -269,7 +269,7 @@ def load_config(path):
|
|||||||
calendars = {}
|
calendars = {}
|
||||||
try:
|
try:
|
||||||
with open(path) as file:
|
with open(path) as file:
|
||||||
data = yaml.load(file)
|
data = yaml.safe_load(file)
|
||||||
for calendar in data:
|
for calendar in data:
|
||||||
try:
|
try:
|
||||||
calendars.update({calendar[CONF_CAL_ID]:
|
calendars.update({calendar[CONF_CAL_ID]:
|
||||||
|
@ -105,7 +105,7 @@ class TradfriGroup(Light):
|
|||||||
"""Instruct the group lights to turn on, or dim."""
|
"""Instruct the group lights to turn on, or dim."""
|
||||||
keys = {}
|
keys = {}
|
||||||
if ATTR_TRANSITION in kwargs:
|
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:
|
if ATTR_BRIGHTNESS in kwargs:
|
||||||
self.hass.async_add_job(self._api(
|
self.hass.async_add_job(self._api(
|
||||||
@ -259,7 +259,7 @@ class TradfriLight(Light):
|
|||||||
|
|
||||||
keys = {}
|
keys = {}
|
||||||
if ATTR_TRANSITION in kwargs:
|
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:
|
if ATTR_BRIGHTNESS in kwargs:
|
||||||
self.hass.async_add_job(self._api(
|
self.hass.async_add_job(self._api(
|
||||||
|
@ -18,10 +18,10 @@ from homeassistant.components.media_player import (
|
|||||||
MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA)
|
MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST, CONF_PORT, STATE_ON, STATE_OFF, STATE_PLAYING,
|
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
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['liveboxplaytv==1.4.9']
|
REQUIREMENTS = ['liveboxplaytv==1.5.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice):
|
|||||||
self._muted = False
|
self._muted = False
|
||||||
self._name = name
|
self._name = name
|
||||||
self._current_source = None
|
self._current_source = None
|
||||||
self._state = STATE_UNKNOWN
|
self._state = None
|
||||||
self._channel_list = {}
|
self._channel_list = {}
|
||||||
self._current_channel = None
|
self._current_channel = None
|
||||||
self._current_program = None
|
self._current_program = None
|
||||||
@ -92,7 +92,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice):
|
|||||||
self._client.get_current_channel_image(img_size=300)
|
self._client.get_current_channel_image(img_size=300)
|
||||||
self.refresh_channel_list()
|
self.refresh_channel_list()
|
||||||
except requests.ConnectionError:
|
except requests.ConnectionError:
|
||||||
self._state = STATE_OFF
|
self._state = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 55
|
MINOR_VERSION = 55
|
||||||
PATCH_VERSION = '0'
|
PATCH_VERSION = '1'
|
||||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||||
REQUIRED_PYTHON_VER = (3, 4, 2)
|
REQUIRED_PYTHON_VER = (3, 4, 2)
|
||||||
|
@ -398,7 +398,7 @@ lightify==1.0.6
|
|||||||
limitlessled==1.0.8
|
limitlessled==1.0.8
|
||||||
|
|
||||||
# homeassistant.components.media_player.liveboxplaytv
|
# homeassistant.components.media_player.liveboxplaytv
|
||||||
liveboxplaytv==1.4.9
|
liveboxplaytv==1.5.0
|
||||||
|
|
||||||
# homeassistant.components.lametric
|
# homeassistant.components.lametric
|
||||||
# homeassistant.components.notify.lametric
|
# homeassistant.components.notify.lametric
|
||||||
@ -540,7 +540,7 @@ pwmled==1.2.1
|
|||||||
py-cpuinfo==3.3.0
|
py-cpuinfo==3.3.0
|
||||||
|
|
||||||
# homeassistant.components.camera.synology
|
# homeassistant.components.camera.synology
|
||||||
py-synology==0.1.1
|
py-synology==0.1.3
|
||||||
|
|
||||||
# homeassistant.components.hdmi_cec
|
# homeassistant.components.hdmi_cec
|
||||||
pyCEC==0.4.13
|
pyCEC==0.4.13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user