mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
commit
ad95b2715e
@ -66,7 +66,7 @@ class GoogleCalendarData(object):
|
|||||||
"""Get the latest data."""
|
"""Get the latest data."""
|
||||||
service = self.calendar_service.get()
|
service = self.calendar_service.get()
|
||||||
params = dict(DEFAULT_GOOGLE_SEARCH_PARAMS)
|
params = dict(DEFAULT_GOOGLE_SEARCH_PARAMS)
|
||||||
params['timeMin'] = dt.start_of_local_day().isoformat('T')
|
params['timeMin'] = dt.now().isoformat('T')
|
||||||
params['calendarId'] = self.calendar_id
|
params['calendarId'] = self.calendar_id
|
||||||
if self.search:
|
if self.search:
|
||||||
params['q'] = self.search
|
params['q'] = self.search
|
||||||
|
@ -366,8 +366,8 @@ class WinkAC(WinkDevice, ClimateDevice):
|
|||||||
if target_temp_low is not None:
|
if target_temp_low is not None:
|
||||||
data[ATTR_TARGET_TEMP_LOW] = self._convert_for_display(
|
data[ATTR_TARGET_TEMP_LOW] = self._convert_for_display(
|
||||||
self.target_temperature_low)
|
self.target_temperature_low)
|
||||||
data["total_consumption"] = self.wink.toatl_consumption()
|
data["total_consumption"] = self.wink.total_consumption()
|
||||||
data["schedule_enabled"] = self.wink.toatl_consumption()
|
data["schedule_enabled"] = self.wink.schedule_enabled()
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
|||||||
gateways = hass.data.get(mysensors.MYSENSORS_GATEWAYS)
|
gateways = hass.data.get(mysensors.MYSENSORS_GATEWAYS)
|
||||||
|
|
||||||
for gateway in gateways:
|
for gateway in gateways:
|
||||||
|
if float(gateway.protocol_version) < 2.0:
|
||||||
|
continue
|
||||||
gateway.platform_callbacks.append(mysensors_callback)
|
gateway.platform_callbacks.append(mysensors_callback)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -365,7 +365,6 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
self._support_pause = False
|
self._support_pause = False
|
||||||
self._is_playing_tv = False
|
self._is_playing_tv = False
|
||||||
self._is_playing_line_in = False
|
self._is_playing_line_in = False
|
||||||
self._favorite_sources = None
|
|
||||||
self._source_name = None
|
self._source_name = None
|
||||||
self._last_avtransport_event = None
|
self._last_avtransport_event = None
|
||||||
return
|
return
|
||||||
|
@ -19,6 +19,8 @@ def get_service(hass, config, discovery_info=None):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for gateway in gateways:
|
for gateway in gateways:
|
||||||
|
if float(gateway.protocol_version) < 2.0:
|
||||||
|
continue
|
||||||
pres = gateway.const.Presentation
|
pres = gateway.const.Presentation
|
||||||
set_req = gateway.const.SetReq
|
set_req = gateway.const.SetReq
|
||||||
map_sv_types = {
|
map_sv_types = {
|
||||||
|
@ -62,11 +62,6 @@ class MoonSensor(Entity):
|
|||||||
else:
|
else:
|
||||||
return 'New moon'
|
return 'New moon'
|
||||||
|
|
||||||
@property
|
|
||||||
def unit_of_measurement(self):
|
|
||||||
"""Return the unit the value is expressed in."""
|
|
||||||
return 'Phase'
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
"""Icon to use in the frontend, if any."""
|
"""Icon to use in the frontend, if any."""
|
||||||
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-wink==1.1.1', 'pubnubsub-handler==1.0.0']
|
REQUIREMENTS = ['python-wink==1.1.1', 'pubnubsub-handler==1.0.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -638,7 +638,6 @@ class ZWaveDeviceEntity(Entity):
|
|||||||
def _value_handler(self, method=None, class_id=None, index=None,
|
def _value_handler(self, method=None, class_id=None, index=None,
|
||||||
label=None, data=None, member=None, **kwargs):
|
label=None, data=None, member=None, **kwargs):
|
||||||
"""Get the values for a given command_class with arguments."""
|
"""Get the values for a given command_class with arguments."""
|
||||||
varname = member
|
|
||||||
if class_id is not None:
|
if class_id is not None:
|
||||||
kwargs[CLASS_ID] = class_id
|
kwargs[CLASS_ID] = class_id
|
||||||
_LOGGER.debug('method=%s, class_id=%s, index=%s, label=%s, data=%s,'
|
_LOGGER.debug('method=%s, class_id=%s, index=%s, label=%s, data=%s,'
|
||||||
@ -653,16 +652,20 @@ class ZWaveDeviceEntity(Entity):
|
|||||||
if index is not None and value.index != index:
|
if index is not None and value.index != index:
|
||||||
continue
|
continue
|
||||||
if label is not None:
|
if label is not None:
|
||||||
|
label_found = False
|
||||||
for entry in label:
|
for entry in label:
|
||||||
if entry is not None and value.label != entry:
|
if value.label == entry:
|
||||||
continue
|
label_found = True
|
||||||
|
break
|
||||||
|
if not label_found:
|
||||||
|
continue
|
||||||
if method == 'set':
|
if method == 'set':
|
||||||
value.data = data
|
value.data = data
|
||||||
return
|
return
|
||||||
if data is not None and value.data != data:
|
if data is not None and value.data != data:
|
||||||
continue
|
continue
|
||||||
if member is not None:
|
if member is not None:
|
||||||
results = getattr(value, varname)
|
results = getattr(value, member)
|
||||||
else:
|
else:
|
||||||
results = value
|
results = value
|
||||||
break
|
break
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 38
|
MINOR_VERSION = 38
|
||||||
PATCH_VERSION = '2'
|
PATCH_VERSION = '3'
|
||||||
__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)
|
||||||
|
@ -388,7 +388,7 @@ proliphix==0.4.1
|
|||||||
psutil==5.1.2
|
psutil==5.1.2
|
||||||
|
|
||||||
# homeassistant.components.wink
|
# homeassistant.components.wink
|
||||||
pubnubsub-handler==1.0.0
|
pubnubsub-handler==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.notify.pushbullet
|
# homeassistant.components.notify.pushbullet
|
||||||
pushbullet.py==0.10.0
|
pushbullet.py==0.10.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user