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