Skip to content
Merged

0.64.0 #12609

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
7c36c5d
Version bump to 0.64.0.dev0
balloob Feb 9, 2018
1db4df6
device_tracker.asuswrt: Clean up unused connection param (#12262)
trisk Feb 9, 2018
cad9e9a
allow wildcards in subscription (#12247)
escoand Feb 9, 2018
134445f
Fix some rfxtrx devices with multiple sensors (#12264)
neffs Feb 10, 2018
f2296e1
Retry keyset cloud (#12270)
balloob Feb 10, 2018
a9e2dd3
Update limitlessled requirement to v1.0.9 (#12275)
vaceslav Feb 10, 2018
74010fc
Merge branch 'master' into dev
balloob Feb 10, 2018
fe1a850
have climate fallback to state if no ATTR_OPERATION_MODE (#12271) (#1…
ttroy50 Feb 10, 2018
65c6f72
check_config check bootstrap errors (#12291)
kellerza Feb 11, 2018
8b9eab1
Attempt fixing flakiness of check config test (#12283)
balloob Feb 11, 2018
17e5740
Allow overriding name via entity registry (#12292)
balloob Feb 11, 2018
b1c0cab
Fix MQTT retained message not being re-dispatched (#12004)
OttoWinter Feb 11, 2018
2edebfe
Fix config error for FTP links, add test (#12294)
ReneNulschDE Feb 11, 2018
64c5d26
Fix Panel_IFrame - FTP URL not allowed in 0.63 (#12295)
ReneNulschDE Feb 11, 2018
678f284
Upgrade pylint to 1.8.2 (#12274)
OttoWinter Feb 11, 2018
26209de
Move HassIntent handler code into helpers/intent (#12181)
todschmidt Feb 11, 2018
6c358fa
Migrated SABnzbd sensor to asyncio and switched to pypi library (#12290)
jeradM Feb 11, 2018
a71d5f4
Bump frontend to 20180211.0
balloob Feb 11, 2018
e4a826d
📝 Fix fixture encoding (#12296)
OttoWinter Feb 11, 2018
767d3c6
Fix Alexa Step Volume (#12314)
lucasweb78 Feb 11, 2018
47bfef9
Clarify tahoma errrors (#12307)
bakedraccoon Feb 11, 2018
219ed73
add friendly_name_template to template sensor (#12268)
NovapaX Feb 11, 2018
247edf1
Purge recorder data by default (#12271)
amelchio Feb 11, 2018
3e150bb
Protect bloomsky platform setup (#12316)
balloob Feb 11, 2018
28ed304
zha: Update zigpy-xbee to 0.0.2
rcloran Feb 11, 2018
ed1d6f1
Removed default sensor configuration (#12252)
ChristianKuehnel Feb 11, 2018
0694543
zha: Update zigpy-xbee to 0.0.2
rcloran Feb 12, 2018
f28fa74
Force LF line endings for Windows (#12266)
kellerza Feb 12, 2018
2e35241
Remove unique ID from netatmo (#12317)
balloob Feb 12, 2018
c193d80
Updated RainMachine to play better with the entity registry (#12315)
bachya Feb 12, 2018
7e9dcfa
Revert #12316 (#12329)
balloob Feb 12, 2018
3b30504
zha: Add remove service (#11683)
rcloran Feb 12, 2018
eb7adc7
Respect entity namespace for entity registry (#12313)
balloob Feb 12, 2018
669929d
Fix Report State for Alexa Brightness Controller (#12318)
lucasweb78 Feb 12, 2018
5d15b25
Fix line endings [skipci] (#12333)
balloob Feb 12, 2018
7059b6c
Always return lockState == LOCKED when handling Alexa.LockController …
lucasweb78 Feb 12, 2018
eaa2791
Unifi tracking filter by SSID (#12281)
Feb 12, 2018
ebe4418
device_tracker.asuswrt: Ignore unreachable ip neigh entries (#12201)
trisk Feb 12, 2018
04b6890
Fix platform dependencies (#12330)
balloob Feb 12, 2018
d34a4fb
nmap_tracker: don't scan on setup (#12322)
abmantis Feb 12, 2018
034eb9a
Upgrade Sphinx to 1.7.0 (#12335)
fabaff Feb 12, 2018
48f4045
Merge branch 'master' into dev
balloob Feb 12, 2018
870728f
Mock Module + Platform default to async (#12347)
balloob Feb 12, 2018
52f57b7
Change Unifi SSID filtering to list comprehension (#12344)
Feb 12, 2018
2d77a2b
Use the speedometer icon in the fastdotcom sensor (#12348)
d0ugal Feb 12, 2018
04bde68
Communication reduced. Setting brightness and/or color temperature wi…
syssi Feb 12, 2018
2c20269
Fix WUnderground names (#12346)
OttoWinter Feb 12, 2018
0a558a0
Add New Sensor for ISP Start.ca (#12356)
Feb 13, 2018
ba9fef4
bump fedex version (#12362)
happyleavesaoc Feb 13, 2018
66d14da
Upgrade alpha_vantage to 1.9.0 (#12352)
fabaff Feb 13, 2018
00ff305
Fix MercedesMe - add check for unsupported features (#12342)
ReneNulschDE Feb 13, 2018
f5c2e7f
Eq3btsmart more reliable (#11555)
karlkar Feb 13, 2018
a4b88fc
Updated beacontools (#12368)
citruz Feb 13, 2018
d2cea84
Allow disabling entities in the registry (#12360)
balloob Feb 13, 2018
80d2c76
Upgrade panasonic_viera to 0.3.1 (#12370)
dgomes Feb 13, 2018
5995c2f
SMA sensor add SSL and upgrade to pysma 0.2 (#12354)
kellerza Feb 13, 2018
f0231c1
Specify algorithms for webpush jwt verification (#12378)
balloob Feb 13, 2018
16dafaa
Introduce zone_id to identify player+zone (#12382)
sdague Feb 13, 2018
429628e
Upgrade youtube_dl to 2018.02.11 (#12383)
fabaff Feb 13, 2018
c7416c8
Remove usage of deprecated assert method (#12379)
balloob Feb 13, 2018
bc64053
Add attributes (fixes #12332) (#12377)
fabaff Feb 13, 2018
a4944da
python-miio version bumped. (Closes: #12389, Closes: #12298) (#12392)
syssi Feb 13, 2018
8bff813
Improve service by allowing to reference entity id instead of deconz …
Kane610 Feb 14, 2018
c5c409b
Pollen.com: Entity Registry updates and cleanup (#12361)
bachya Feb 14, 2018
9bfeb3b
Changed pyvera version to 0.2.41 (#12391)
patrik3k Feb 14, 2018
2896480
Downgrade limitlessled to 1.0.8 (#12403)
amelchio Feb 14, 2018
6500cb7
File Path fixes for RPi Camera (#12338)
FrederikBolding Feb 14, 2018
6f043f3
Merge branch 'master' into dev
balloob Feb 14, 2018
f25d56d
Code cleanup of velux scene (#12390)
Julius2342 Feb 14, 2018
416f64f
Upgrade sphinx-autodoc-typehints to 1.2.5 (#12404)
fabaff Feb 14, 2018
78c4418
Extract data validator to own file and add tests (#12401)
balloob Feb 14, 2018
c25c4c8
Fixed 3 small issues in isy994 component (#12421)
OverloadUT Feb 15, 2018
5d4b1ec
Fix MQTT payload decode returning prematurely (#12420)
OttoWinter Feb 15, 2018
7e2e82d
Print every changed file on new line (#12412)
cdce8p Feb 15, 2018
96bd153
Added support for colored KNX lights (#12411)
Julius2342 Feb 15, 2018
f5d1f53
Small code cleanup: (#12409)
Julius2342 Feb 15, 2018
ae32d20
Cleanup of knx component (#12408)
Julius2342 Feb 15, 2018
b4dbfe9
Update the Tibber sensor at startup (#12428)
Danielhiversen Feb 15, 2018
ad8fe8a
zha: Add unique_id to entities (#12331)
rcloran Feb 15, 2018
f32911d
Cleanup http (#12424)
balloob Feb 15, 2018
d18709d
Update CODEOWNERS (#12440)
dgomes Feb 15, 2018
f0d9e5d
Fix: timeout data attribute now is parsed to float (#12432)
sjvc Feb 15, 2018
612dd30
Stop mapping zigbee switches to lights & switches. (#12280)
igorbernstein2 Feb 15, 2018
c7c0df5
AirVisual: Entity Registry updates and cleanup (#12319)
bachya Feb 15, 2018
d43a8e5
[SQL Sensor] always close session (#12452)
dgomes Feb 16, 2018
0e2d98d
Optimize recorder purge (#12448)
amelchio Feb 16, 2018
facd833
Vagrant - sendfile python3.5 debian-stretch (#12454)
tabakhase Feb 16, 2018
8d48272
Add effects to iGlo Lights (#12365)
jesserockz Feb 16, 2018
1f041d5
Fake the state for a short period and skip the next update. (#12446)
syssi Feb 16, 2018
13d6e56
Fix light template to return brightness as int (#12447)
andrey-git Feb 16, 2018
2053c8a
Fix for contentRating error (#12445)
ryanm101 Feb 16, 2018
b3a4772
Initial support for Config Entries (#12079)
balloob Feb 16, 2018
fe5626b
Make WUnderground async (#12385)
OttoWinter Feb 16, 2018
26340fd
Bump frontend to 20180216.0
balloob Feb 16, 2018
dd7bffc
Add the Xiaomi TV platform. (#12359)
simse Feb 16, 2018
e4ef6b9
Typo
balloob Feb 17, 2018
3fd61d8
Update voluputous (#12463)
balloob Feb 17, 2018
fab991b
Map Alexa StepVolume responses to volume_up/down (#12467)
lucasweb78 Feb 17, 2018
66dcb6c
ONVIF Camera added Error handling and rtsp authentication. (#11129)
matt2005 Feb 17, 2018
22a007a
Bump aioautomatic to 0.6.5 for voluptuous 0.11 (#12480)
emlove Feb 17, 2018
371fe9c
Add example in test how to create list or object in template (#12469)
balloob Feb 17, 2018
4837254
KNX/Climate: Fixed platform schema min/max values. (#12477)
Julius2342 Feb 17, 2018
eaba3b3
Reduce the load on met.no servers, yr.no sensor (#12435)
Danielhiversen Feb 17, 2018
6299c05
Prevent error when no internet or DNS is available (#12486)
mjj4791 Feb 18, 2018
8840c22
Added doorbird_last_motion to DoorBird camera platform (#12457)
sjvc Feb 18, 2018
909a065
Fail gracefully with unreachable LaMetric (#12451)
PhilRW Feb 18, 2018
92aeef8
Enable compression when sending json to client (#11165)
elupus Feb 18, 2018
02c05e2
bump usps version (#12465)
happyleavesaoc Feb 18, 2018
e8d8b75
Try deflaking recorder tests (#12492)
balloob Feb 18, 2018
a8444b2
Support for August doorbell (#11124)
snjoetw Feb 18, 2018
0d0e0b8
Avoid warnings when purging an empty database (#12494)
amelchio Feb 18, 2018
2280dc2
Support for PTZ in Onvif cameras (#11630)
karlkar Feb 18, 2018
635d36c
Rework Sonos media player platform (#12126)
amelchio Feb 18, 2018
60148f3
Converted shopping list to use json util and added default override f…
FrederikBolding Feb 18, 2018
72fa170
added smappee component (#11491)
hmn Feb 18, 2018
1143499
More features for the Bluesound component (#11450)
thrawnarn Feb 18, 2018
17b5709
zha: Simplify unique ID (#12495)
rcloran Feb 18, 2018
63fcf9d
zha: Add support for humidity sensors (#12496)
rcloran Feb 18, 2018
a378e18
bump python-eq3bt version, fixes #12499 (#12510)
rytilahti Feb 18, 2018
6f2ee9a
new version of xiaomi lib (#12513)
Danielhiversen Feb 19, 2018
da9c0a1
python-miio version bumped. (Closes: #12471) (#12481)
syssi Feb 19, 2018
dc21c61
LimitlessLED assumed state (#12475)
amelchio Feb 19, 2018
eec3bad
Add support for HomeKit (#12488)
cdce8p Feb 19, 2018
f3748cc
Add password support (#12525)
pvizeli Feb 19, 2018
722b9ba
Changed to async_schedule_update_ha_state (#12518)
thrawnarn Feb 19, 2018
42ab4e1
Homekit component test bugfixes for py3.5
cdce8p Feb 20, 2018
bb29f16
Merge pull request #12532 from cdce8p/homekit-test_bugfixes
cdce8p Feb 20, 2018
336b007
Fix Sphinx build (#12535)
balloob Feb 20, 2018
d68a24b
Update voluptuous serialize (#12538)
balloob Feb 20, 2018
46ce114
Clarify a comment regarding python versions (#12537)
aprasanna Feb 20, 2018
e37974c
Lint
balloob Feb 20, 2018
17bdcac
Adds filesize component (#12211)
robmarkcole Feb 20, 2018
39847ea
Clarify cloud error (#12540)
balloob Feb 20, 2018
fb985e2
Build JSON in executor (#12536)
amelchio Feb 20, 2018
7829e61
Bugfix: Input Datetime config schema (#12552)
cdce8p Feb 20, 2018
3077444
Fix numeric_state condition spamming on unavailable (#12550)
OttoWinter Feb 20, 2018
1d8a514
Frontier silicon async (#12503)
zhelev Feb 20, 2018
f2a2727
Fix WUnderground spamming logs (#12548)
OttoWinter Feb 20, 2018
210226d
Update frontend
balloob Feb 20, 2018
5d29d88
Added support for milight single channel dimmer (#12558)
rubenverhoef Feb 20, 2018
316eb59
Add new component: BMW connected drive (#12277)
ChristianKuehnel Feb 20, 2018
4f96eeb
Cleanup hass.io component (#12556)
pvizeli Feb 20, 2018
c898fb1
Add support for smoke detector in deconz (#12561)
Kane610 Feb 20, 2018
722926b
Fix caldav component handling missing dtend (#12562)
bottomquark Feb 20, 2018
49d4105
Frontend version bump to 20180221.0
balloob Feb 21, 2018
5ad0baf
Add limitlessled night effect (#12567)
amelchio Feb 21, 2018
28fec20
Basic support of post 2016 AVR-X receivers (#12569)
scarface-4711 Feb 21, 2018
8d0b7ad
Fix config 404 (#12571)
balloob Feb 21, 2018
f9ee29a
Logbook speedup (#12566)
amelchio Feb 21, 2018
ed1a883
Fix sonos default errorcodes (#12582)
amelchio Feb 21, 2018
6ce9be6
Update frontend to 20180221.1
balloob Feb 21, 2018
03d6071
Update pychromecast to 2.0.0 (#12587)
balloob Feb 21, 2018
2d36d4d
Set event_id foreign key in recorded states (#12580)
amelchio Feb 21, 2018
b8df2d4
Deconz support water sensor (#12581)
Kane610 Feb 21, 2018
51c06e3
Cloud reconnect tweaks (#12586)
balloob Feb 21, 2018
b228695
Hassio cleanup part2 (#12588)
pvizeli Feb 21, 2018
c6480e4
Add Bluetooth and NFC card/tag Alarm types (#12151)
matthewcky2k Feb 21, 2018
184a54c
Fix fix isy994 fan detection (#12595)
OverloadUT Feb 22, 2018
4d7fb2c
Adds folder sensor (#12208)
robmarkcole Feb 22, 2018
2a4971d
Add unique_id to Xiaomi Aqara (#12372)
tinloaf Feb 22, 2018
de72eb8
Make groups entities again (#12574)
balloob Feb 22, 2018
4fdbbc4
Python spotcrime (#12460)
jcconnell Feb 22, 2018
f0a1bea
Allow ignoring call service events in mqtt_eventstream (#12519)
cmsimike Feb 22, 2018
1af65f8
Component for Sony Bravia TV with Pre-Shared Key (#12464)
gerard33 Feb 22, 2018
87c6945
Set speed service fixed. (#12602)
syssi Feb 22, 2018
ffd3889
Updated script/lint (#12600)
cdce8p Feb 22, 2018
f899ce8
Adding RoomHinting to GoogleAssistant to allow for room annotations. …
jeremydk Feb 22, 2018
079724b
Merge remote-tracking branch 'origin/master' into dev
balloob Feb 22, 2018
7f5ca31
Fix mclimate accounts with not only melissa components (#12427)
kennedyshead Feb 23, 2018
2261ce3
Cast unique_id and async discovery (#12474)
OttoWinter Feb 23, 2018
6aa8916
Add Tahoma scenes (#12498)
bakedraccoon Feb 23, 2018
9ca67c3
Optimize logbook SQL query (#12608)
amelchio Feb 22, 2018
7c80ef7
Fix voluptuous breaking change things (#12611)
balloob Feb 23, 2018
19d34da
OpenGarage - correctly handle offline status (#12612) (#12613)
swbradshaw Feb 23, 2018
43ad3ae
Move recorder query out of event loop (#12615)
amelchio Feb 23, 2018
286baed
Hassio update timeout filter list (#12617)
pvizeli Feb 23, 2018
781b768
The name of the enum must be used here because of the speed_list. (#1…
syssi Feb 23, 2018
8d0d676
Fix cast doing I/O in event loop (#12632)
OttoWinter Feb 23, 2018
6c614df
Remove braviatv_psk (#12669)
balloob Feb 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ omit =
homeassistant/components/arduino.py
homeassistant/components/*/arduino.py

homeassistant/components/bmw_connected_drive.py
homeassistant/components/*/bmw_connected_drive.py

homeassistant/components/android_ip_webcam.py
homeassistant/components/*/android_ip_webcam.py

Expand All @@ -38,6 +41,9 @@ omit =
homeassistant/components/asterisk_mbox.py
homeassistant/components/*/asterisk_mbox.py

homeassistant/components/august.py
homeassistant/components/*/august.py

homeassistant/components/axis.py
homeassistant/components/*/axis.py

Expand Down Expand Up @@ -205,6 +211,9 @@ omit =
homeassistant/components/skybell.py
homeassistant/components/*/skybell.py

homeassistant/components/smappee.py
homeassistant/components/*/smappee.py

homeassistant/components/tado.py
homeassistant/components/*/tado.py

Expand Down Expand Up @@ -462,6 +471,7 @@ omit =
homeassistant/components/media_player/vizio.py
homeassistant/components/media_player/vlc.py
homeassistant/components/media_player/volumio.py
homeassistant/components/media_player/xiaomi_tv.py
homeassistant/components/media_player/yamaha.py
homeassistant/components/media_player/yamaha_musiccast.py
homeassistant/components/media_player/ziggo_mediabox_xl.py
Expand Down Expand Up @@ -551,8 +561,10 @@ omit =
homeassistant/components/sensor/etherscan.py
homeassistant/components/sensor/fastdotcom.py
homeassistant/components/sensor/fedex.py
homeassistant/components/sensor/filesize.py
homeassistant/components/sensor/fitbit.py
homeassistant/components/sensor/fixer.py
homeassistant/components/sensor/folder.py
homeassistant/components/sensor/fritzbox_callmonitor.py
homeassistant/components/sensor/fritzbox_netmonitor.py
homeassistant/components/sensor/gearbest.py
Expand Down Expand Up @@ -617,6 +629,7 @@ omit =
homeassistant/components/sensor/sochain.py
homeassistant/components/sensor/sonarr.py
homeassistant/components/sensor/speedtest.py
homeassistant/components/sensor/spotcrime.py
homeassistant/components/sensor/steam_online.py
homeassistant/components/sensor/supervisord.py
homeassistant/components/sensor/swiss_hydrological_data.py
Expand Down
11 changes: 9 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Ensure Docker script files uses LF to support Docker for Windows.
setup_docker_prereqs eol=lf
/virtualization/Docker/scripts/* eol=lf
# Ensure "git config --global core.autocrlf input" before you clone
* text eol=lf
*.py whitespace=error

*.ico binary
*.jpg binary
*.png binary
*.zip binary
*.mp3 binary
7 changes: 7 additions & 0 deletions CODEOWNERS
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ homeassistant/components/hassio.py @home-assistant/hassio

# Individual components
homeassistant/components/alarm_control_panel/egardia.py @jeroenterheerdt
homeassistant/components/bmw_connected_drive.py @ChristianKuehnel
homeassistant/components/camera/yi.py @bachya
homeassistant/components/climate/ephember.py @ttroy50
homeassistant/components/climate/eq3btsmart.py @rytilahti
Expand All @@ -54,7 +55,10 @@ homeassistant/components/history_graph.py @andrey-git
homeassistant/components/light/tplink.py @rytilahti
homeassistant/components/light/yeelight.py @rytilahti
homeassistant/components/media_player/kodi.py @armills
homeassistant/components/media_player/mediaroom.py @dgomes
homeassistant/components/media_player/monoprice.py @etsinko
homeassistant/components/media_player/sonos.py @amelchio
homeassistant/components/media_player/xiaomi_tv.py @fattdev
homeassistant/components/media_player/yamaha_musiccast.py @jalmeroth
homeassistant/components/plant.py @ChristianKuehnel
homeassistant/components/sensor/airvisual.py @bachya
Expand All @@ -63,16 +67,19 @@ homeassistant/components/sensor/irish_rail_transport.py @ttroy50
homeassistant/components/sensor/miflora.py @danielhiversen @ChristianKuehnel
homeassistant/components/sensor/pollen.py @bachya
homeassistant/components/sensor/sytadin.py @gautric
homeassistant/components/sensor/sql.py @dgomes
homeassistant/components/sensor/tibber.py @danielhiversen
homeassistant/components/sensor/waqi.py @andrey-git
homeassistant/components/switch/rainmachine.py @bachya
homeassistant/components/switch/tplink.py @rytilahti
homeassistant/components/xiaomi_aqara.py @danielhiversen @syssi

homeassistant/components/*/axis.py @kane610
homeassistant/components/*/bmw_connected_drive.py @ChristianKuehnel
homeassistant/components/*/broadlink.py @danielhiversen
homeassistant/components/hive.py @Rendili @KJonline
homeassistant/components/*/hive.py @Rendili @KJonline
homeassistant/components/homekit/* @cdce8p
homeassistant/components/*/deconz.py @kane610
homeassistant/components/*/rfxtrx.py @danielhiversen
homeassistant/components/velux.py @Julius2342
Expand Down
21 changes: 17 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,23 @@
import inspect

from homeassistant.const import __version__, __short_version__
from setup import (
PROJECT_NAME, PROJECT_LONG_DESCRIPTION, PROJECT_COPYRIGHT, PROJECT_AUTHOR,
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY, GITHUB_PATH,
GITHUB_URL)

PROJECT_NAME = 'Home Assistant'
PROJECT_PACKAGE_NAME = 'homeassistant'
PROJECT_AUTHOR = 'The Home Assistant Authors'
PROJECT_COPYRIGHT = ' 2013-2018, {}'.format(PROJECT_AUTHOR)
PROJECT_LONG_DESCRIPTION = ('Home Assistant is an open-source '
'home automation platform running on Python 3. '
'Track and control all devices at home and '
'automate control. '
'Installation in less than a minute.')
PROJECT_GITHUB_USERNAME = 'home-assistant'
PROJECT_GITHUB_REPOSITORY = 'home-assistant'

GITHUB_PATH = '{}/{}'.format(
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)


sys.path.insert(0, os.path.abspath('_ext'))
sys.path.insert(0, os.path.abspath('../homeassistant'))
Expand Down
53 changes: 29 additions & 24 deletions homeassistant/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import voluptuous as vol

from homeassistant import (
core, config as conf_util, loader, components as core_components)
core, config as conf_util, config_entries, loader,
components as core_components)
from homeassistant.components import persistent_notification
from homeassistant.const import EVENT_HOMEASSISTANT_CLOSE
from homeassistant.setup import async_setup_component
Expand All @@ -35,13 +36,13 @@


def from_config_dict(config: Dict[str, Any],
hass: Optional[core.HomeAssistant]=None,
config_dir: Optional[str]=None,
enable_log: bool=True,
verbose: bool=False,
skip_pip: bool=False,
log_rotate_days: Any=None,
log_file: Any=None) \
hass: Optional[core.HomeAssistant] = None,
config_dir: Optional[str] = None,
enable_log: bool = True,
verbose: bool = False,
skip_pip: bool = False,
log_rotate_days: Any = None,
log_file: Any = None) \
-> Optional[core.HomeAssistant]:
"""Try to configure Home Assistant from a configuration dictionary.

Expand All @@ -68,12 +69,12 @@ def from_config_dict(config: Dict[str, Any],
@asyncio.coroutine
def async_from_config_dict(config: Dict[str, Any],
hass: core.HomeAssistant,
config_dir: Optional[str]=None,
enable_log: bool=True,
verbose: bool=False,
skip_pip: bool=False,
log_rotate_days: Any=None,
log_file: Any=None) \
config_dir: Optional[str] = None,
enable_log: bool = True,
verbose: bool = False,
skip_pip: bool = False,
log_rotate_days: Any = None,
log_file: Any = None) \
-> Optional[core.HomeAssistant]:
"""Try to configure Home Assistant from a configuration dictionary.

Expand Down Expand Up @@ -123,9 +124,13 @@ def async_from_config_dict(config: Dict[str, Any],
new_config[key] = value or {}
config = new_config

hass.config_entries = config_entries.ConfigEntries(hass, config)
yield from hass.config_entries.async_load()

# Filter out the repeating and common config section [homeassistant]
components = set(key.split(' ')[0] for key in config.keys()
if key != core.DOMAIN)
components.update(hass.config_entries.async_domains())

# setup components
# pylint: disable=not-an-iterable
Expand Down Expand Up @@ -163,11 +168,11 @@ def async_from_config_dict(config: Dict[str, Any],


def from_config_file(config_path: str,
hass: Optional[core.HomeAssistant]=None,
verbose: bool=False,
skip_pip: bool=True,
log_rotate_days: Any=None,
log_file: Any=None):
hass: Optional[core.HomeAssistant] = None,
verbose: bool = False,
skip_pip: bool = True,
log_rotate_days: Any = None,
log_file: Any = None):
"""Read the configuration file and try to start all the functionality.

Will add functionality to 'hass' parameter if given,
Expand All @@ -188,10 +193,10 @@ def from_config_file(config_path: str,
@asyncio.coroutine
def async_from_config_file(config_path: str,
hass: core.HomeAssistant,
verbose: bool=False,
skip_pip: bool=True,
log_rotate_days: Any=None,
log_file: Any=None):
verbose: bool = False,
skip_pip: bool = True,
log_rotate_days: Any = None,
log_file: Any = None):
"""Read the configuration file and try to start all the functionality.

Will add functionality to 'hass' parameter.
Expand Down Expand Up @@ -219,7 +224,7 @@ def async_from_config_file(config_path: str,


@core.callback
def async_enable_logging(hass: core.HomeAssistant, verbose: bool=False,
def async_enable_logging(hass: core.HomeAssistant, verbose: bool = False,
log_rotate_days=None, log_file=None) -> None:
"""Set up the logging.

Expand Down
7 changes: 7 additions & 0 deletions homeassistant/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import homeassistant.config as conf_util
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.service import extract_entity_ids
from homeassistant.helpers import intent
from homeassistant.const import (
ATTR_ENTITY_ID, SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_TOGGLE,
SERVICE_HOMEASSISTANT_STOP, SERVICE_HOMEASSISTANT_RESTART,
Expand Down Expand Up @@ -154,6 +155,12 @@ def async_handle_turn_service(service):
ha.DOMAIN, SERVICE_TURN_ON, async_handle_turn_service)
hass.services.async_register(
ha.DOMAIN, SERVICE_TOGGLE, async_handle_turn_service)
hass.helpers.intent.async_register(intent.ServiceIntentHandler(
intent.INTENT_TURN_ON, ha.DOMAIN, SERVICE_TURN_ON, "Turned on {}"))
hass.helpers.intent.async_register(intent.ServiceIntentHandler(
intent.INTENT_TURN_OFF, ha.DOMAIN, SERVICE_TURN_OFF, "Turned off {}"))
hass.helpers.intent.async_register(intent.ServiceIntentHandler(
intent.INTENT_TOGGLE, ha.DOMAIN, SERVICE_TOGGLE, "Toggled {}"))

@asyncio.coroutine
def async_handle_core_service(call):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/abode.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import asyncio
import logging
from functools import partial
from requests.exceptions import HTTPError, ConnectTimeout

import voluptuous as vol

Expand All @@ -17,7 +18,6 @@
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers import discovery
from homeassistant.helpers.entity import Entity
from requests.exceptions import HTTPError, ConnectTimeout

REQUIREMENTS = ['abodepy==0.12.2']

Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/alarm_control_panel/canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def state(self):
return STATE_ALARM_ARMED_HOME
elif mode.name == LOCATION_MODE_NIGHT:
return STATE_ALARM_ARMED_NIGHT
else:
return None
return None

@property
def device_state_attributes(self):
Expand Down
8 changes: 3 additions & 5 deletions homeassistant/components/alarm_control_panel/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,8 @@ def state(self):
trigger_time) < dt_util.utcnow():
if self._disarm_after_trigger:
return STATE_ALARM_DISARMED
else:
self._state = self._previous_state
return self._state
self._state = self._previous_state
return self._state

if self._state in SUPPORTED_PENDING_STATES and \
self._within_pending_time(self._state):
Expand All @@ -187,8 +186,7 @@ def _active_state(self):
"""Get the current state."""
if self.state == STATE_ALARM_PENDING:
return self._previous_state
else:
return self._state
return self._state

def _pending_time(self, state):
"""Get the pending time."""
Expand Down
8 changes: 3 additions & 5 deletions homeassistant/components/alarm_control_panel/manual_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ def state(self):
trigger_time) < dt_util.utcnow():
if self._disarm_after_trigger:
return STATE_ALARM_DISARMED
else:
self._state = self._previous_state
return self._state
self._state = self._previous_state
return self._state

if self._state in SUPPORTED_PENDING_STATES and \
self._within_pending_time(self._state):
Expand All @@ -223,8 +222,7 @@ def _active_state(self):
"""Get the current state."""
if self.state == STATE_ALARM_PENDING:
return self._previous_state
else:
return self._state
return self._state

def _pending_time(self, state):
"""Get the pending time."""
Expand Down
Loading