Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
d7e9959
String formatting improvements for tests (2) (#33666)
frenck Apr 4, 2020
bf1b408
Handle cancellation in ServiceRegistry.async_call (#33644)
pnbruckner Apr 4, 2020
c20a965
Improve string formatting v3 (#33667)
springstan Apr 4, 2020
d267d67
[ci skip] Translation update
homeassistant Apr 5, 2020
03dd92d
Use set literals in tests (#33669)
frenck Apr 5, 2020
262b01d
Removal of old style class definitions in tests (#33671)
frenck Apr 5, 2020
59f1a1b
Replace OSError aliases with OSError in UVC test (#33673)
frenck Apr 5, 2020
b00b8ea
Use byte literals instead of encode in tests (#33672)
frenck Apr 5, 2020
61b4d1e
Small code style improvements to Insteon integration (#33662)
frenck Apr 5, 2020
528c7f4
Removal of extraneous parenthesis in tests (#33670)
frenck Apr 5, 2020
927c231
use async_on_remove for IPP Update Coordinator (#33596)
ctalkington Apr 5, 2020
8d3a415
Add OpenERZ API integration (#30441)
Apr 5, 2020
d3a4270
Plex logging additions & cleanup (#33681)
jjlawren Apr 5, 2020
000ad25
Handle float values for homekit lightning (#33683)
bdraco Apr 5, 2020
0763503
Debounce calls to Plex server (#33560)
jjlawren Apr 4, 2020
ab7afbd
Hass.io integration do not warn safe mode (#33600)
balloob Apr 4, 2020
6a297b3
Use IP addresses instead of mDNS names when wled discovered (#33608)
balloob Apr 4, 2020
5dae7f8
Identify more Sonos radio stations with poor titles (#33609)
amelchio Apr 4, 2020
38b729b
Use IP addresses instead of mDNS names when IPP discovered (#33610)
ctalkington Apr 4, 2020
52f7105
Handle race condition in harmony setup (#33611)
bdraco Apr 4, 2020
f5eafbe
Bump twentemilieu to 0.3.0 (#33622)
frenck Apr 4, 2020
71803cb
Update zha dependencies (#33639)
Adminiuga Apr 4, 2020
30a391b
Plex logging additions & cleanup (#33681)
jjlawren Apr 5, 2020
dd0fd36
Handle float values for homekit lightning (#33683)
bdraco Apr 5, 2020
0f39296
Bumped version to 0.108.0b3
balloob Apr 5, 2020
7653dc9
Enable pylint unnecessary-pass (#33650)
frenck Apr 5, 2020
24840b5
Add yamllint (in pre-commit and CI) (#33676)
frenck Apr 5, 2020
5bf7e0f
List dir when test fails (#33685)
balloob Apr 5, 2020
f380115
Add pyupgrade (in pre-commit and CI) (#33688)
frenck Apr 5, 2020
de317fb
Map dry and fan only states for homekit thermostats (#33682)
bdraco Apr 5, 2020
b855177
Make homekit aware of STATE_STANDBY (#33679)
bdraco Apr 5, 2020
e3bcfb8
Improve string formatting v4 (#33668)
springstan Apr 5, 2020
39336d3
Add prettier (in pre-commit and CI) (#33693)
frenck Apr 5, 2020
fca90a8
Improve string formatting v5 (#33697)
springstan Apr 5, 2020
3f0936f
Prevent last.fm errors with None (#33446)
inverse Apr 5, 2020
f89c73d
Recommend python & prettier vscode extensions (#33702)
frenck Apr 5, 2020
d33cf28
Add check executables have shebangs (in pre-commit and CI) (#33703)
frenck Apr 5, 2020
c8df5fb
Ensure SimpliSafe state sync when websocket falters (#33680)
bachya Apr 5, 2020
0793b5a
Show diff in CI and cleanup pylintrc (#33704)
frenck Apr 5, 2020
171c1b2
Remap homekit auto to home assistant heat_cool (#33701)
bdraco Apr 5, 2020
b132692
Remove global variable from aquostv (#33716)
springstan Apr 5, 2020
983ed8b
Remove global variable from bloomsky (#33720)
springstan Apr 5, 2020
40ce8f8
Remove global variable from arduino (#33718)
springstan Apr 5, 2020
00e67fb
Remove global variable from scsgate (#33719)
springstan Apr 5, 2020
60dd221
Remove global variable from apcupsd (#33717)
springstan Apr 5, 2020
18e4493
Ignore tplink tests exceptions (#33710)
ziv1234 Apr 5, 2020
5711c08
Fix exception in zwave test (#33711)
ziv1234 Apr 5, 2020
a16e742
Fix iCloud tests doing I/O (#33721)
Quentame Apr 5, 2020
d28b477
Fix nuheat response error checking (#33712)
bdraco Apr 5, 2020
15f41c8
Fix rachio import of run time from yaml (#33723)
bdraco Apr 5, 2020
67c3a4c
Improve string formatting v7 (#33705)
springstan Apr 5, 2020
2e61083
Remove global variable from sleepiq (#33715)
springstan Apr 5, 2020
e3e2e81
Convert rachio to cloudhooks (#33724)
bdraco Apr 5, 2020
d99e228
Add config flow to Synology DSM (#32704)
Quentame Apr 5, 2020
738ef38
Modbus: isolate common test functions (#33447)
janiversen Apr 5, 2020
529656c
UniFi - Improve client tracker attributes based on connection (#32817)
Kane610 Apr 5, 2020
f7b822d
[ci skip] Translation update
homeassistant Apr 6, 2020
e4ee4cf
Remove legacy async_add_job from homekit tests (#33727)
bdraco Apr 6, 2020
f53dfc4
Don't reinvent callback handler removal logic in several integ… (#33726)
bachya Apr 6, 2020
ffa111d
Fix exceptions in tests for samsung_tv (#33732)
ziv1234 Apr 6, 2020
a1aebe9
Add MQTT Alarm Control Panel custom bypass state (#32541)
yozik04 Apr 6, 2020
b31284b
Temporarily disable Prettier on CI until issue is resolved (#33734)
frenck Apr 6, 2020
98a2efc
Collection of random (mainly) test improvements (#33733)
frenck Apr 6, 2020
cedf7e3
Fix unhandled exceptions for config, default_config, harmony (#33731)
ziv1234 Apr 6, 2020
6dfffb2
Fix Plex debounce wrapper (#33730)
jjlawren Apr 6, 2020
c2a90a4
Remove global variable from mochad (#33745)
springstan Apr 6, 2020
4760729
Collection of random test improvements (#33742)
frenck Apr 6, 2020
c39fe36
Skip parsing Plex session if incomplete (#33534)
jjlawren Apr 6, 2020
66ac5d5
Abort rachio config flow if the api key is already configured… (#33747)
bdraco Apr 6, 2020
f3b6575
Fix MQTT debug info for subscriptions with wildcard. (#33744)
emontnemery Apr 6, 2020
5fd8763
Skip parsing Plex session if incomplete (#33534)
jjlawren Apr 6, 2020
49dc7ff
Fix nuheat response error checking (#33712)
bdraco Apr 5, 2020
565b54d
Fix rachio import of run time from yaml (#33723)
bdraco Apr 5, 2020
8392406
Fix Plex debounce wrapper (#33730)
jjlawren Apr 6, 2020
8a68b1a
Fix MQTT debug info for subscriptions with wildcard. (#33744)
emontnemery Apr 6, 2020
0d2de91
Clean up after global variable deletion (#33743)
springstan Apr 6, 2020
69b98de
Abort rachio config flow if the api key is already configured… (#33747)
bdraco Apr 6, 2020
de2eab3
Bumped version to 0.108.0b4
balloob Apr 6, 2020
34ecc80
Pre-commit changes to Prettier and executables check (#33749)
frenck Apr 6, 2020
db2110f
Add some safety checks for property access in NMBS sensor (#33695)
thibmaek Apr 6, 2020
2dbd8cf
Bump frontend (#33751)
bramkragten Apr 6, 2020
b3b7704
Update azure-pipelines-ci.yml
pvizeli Apr 6, 2020
6ca2c4d
Properly demarcate websocket and REST API callbacks in SimpliS… (#33706)
bachya Apr 6, 2020
cf563df
Bump HAP-python to 2.8.1 (#33756)
bdraco Apr 6, 2020
cc1564d
TTS: Wait till files are created in tests (#33760)
balloob Apr 6, 2020
98e7865
Bump aioambient to 1.1.1 (#33761)
bachya Apr 6, 2020
648b340
Bump simplisafe-python to 9.0.6 (#33762)
bachya Apr 6, 2020
b48dcca
Defer Plex sensor retry instead of aborting (#33753)
jjlawren Apr 6, 2020
e1e768f
Bump frontend (#33751)
bramkragten Apr 6, 2020
e3d90f5
Defer Plex sensor retry instead of aborting (#33753)
jjlawren Apr 6, 2020
33849a1
Bump HAP-python to 2.8.1 (#33756)
bdraco Apr 6, 2020
e8da7f3
Bump aioambient to 1.1.1 (#33761)
bachya Apr 6, 2020
087ddcb
Bump simplisafe-python to 9.0.6 (#33762)
bachya Apr 6, 2020
a33e572
Bumped version to 0.108.0b5
balloob Apr 6, 2020
0ba04ec
[ci skip] Translation update
homeassistant Apr 7, 2020
643848c
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli Apr 7, 2020
cb98d62
Patch gdacs entry setup in config flow tests (#33776)
MartinHjelmare Apr 7, 2020
93f7f78
Support for pi4ioe5v9xxxx I2C IO expanders (#28847)
antonverburg Apr 7, 2020
c19a1bf
Add Sense attribution to all Sense sensors (#33775)
tchellomello Apr 7, 2020
b3286a4
Fix Modbus review comments (#33755)
janiversen Apr 7, 2020
894aac1
Update nexia for thermostats without zoning (#33770)
bdraco Apr 7, 2020
325e541
Remove global variable from zigbee (#33750)
springstan Apr 7, 2020
a61224c
Update Codecov.io configuration (#33783)
frenck Apr 7, 2020
5cfae3f
Add emontnemery as codeowner for cast, mqtt (#33784)
emontnemery Apr 7, 2020
2304a76
Bumped version to 0.109.0dev0 (#33782)
frenck Apr 7, 2020
60eb488
Bump pyW215 to 0.7.0 (#33786)
springstan Apr 7, 2020
1f7803c
Catch IPPParseError during config flow (#33769)
ctalkington Apr 7, 2020
60bc517
Collection of core tests improvements (#33757)
frenck Apr 7, 2020
bee7429
Fix uncaught exceptions for discovery, unify_direct, spotify,… (#33735)
ziv1234 Apr 7, 2020
bb8bbc9
Collection of tests improvements (#33778)
frenck Apr 7, 2020
3697ea7
Remove uncaught exceptions from rflink (#33709)
ziv1234 Apr 7, 2020
ddef681
Improve MQTT debug info for subscriptions with wildcard (#33752)
emontnemery Apr 7, 2020
9d38413
Upgrade hass-cloud to 0.34 (#33789)
balloob Apr 7, 2020
8fb8985
Fix flaky TP-Link test (#33790)
balloob Apr 7, 2020
81569f1
Fix nuheat reverting to auto mode after setting temp hold (#33772)
bdraco Apr 7, 2020
3873b23
Fix minor async issues in Plex (#33785)
jjlawren Apr 7, 2020
abdee3f
Catch IPPParseError during config flow (#33769)
ctalkington Apr 7, 2020
078ce67
Add discovery support to synology_dsm (#33729)
bdraco Apr 7, 2020
1bd1b83
Update nexia for thermostats without zoning (#33770)
bdraco Apr 7, 2020
b933627
Fix nuheat reverting to auto mode after setting temp hold (#33772)
bdraco Apr 7, 2020
d92d74a
Fix minor async issues in Plex (#33785)
jjlawren Apr 7, 2020
4901fa2
Fix unhandled exceptions for config, default_config, harmony (#33731)
ziv1234 Apr 6, 2020
265666b
Bumped version to 0.108.0b6
balloob Apr 7, 2020
d54ee77
Update directv remote platform tests service calls (#33793)
ctalkington Apr 7, 2020
46bbe81
Remove None from dict.get(key, None) (#33794)
springstan Apr 7, 2020
d95ffb3
Updated frontend to 20200407.1 (#33799)
bramkragten Apr 7, 2020
d7e3b0b
Clean up access to config in various integrations v2 (#33763)
springstan Apr 7, 2020
eae21be
Improve string formatting v6 (#33698)
springstan Apr 7, 2020
8b5ab32
Handle QVR Pro dropping connection (#33591)
oblogic7 Apr 7, 2020
ad61981
[ci skip] Translation update
homeassistant Apr 8, 2020
ba8ae17
Fix hue ct (#33791)
balloob Apr 8, 2020
c6c7dd1
Clean up access to config in various integrations (#33759)
springstan Apr 8, 2020
035b280
Update translations
frenck Apr 8, 2020
14f035a
Upgrade sqlalchemy to 1.3.16 (#33810)
frenck Apr 8, 2020
b0978f0
Upgrade shodan to 1.23.0 (#33811)
frenck Apr 8, 2020
9675cc5
Updated frontend to 20200407.1 (#33799)
bramkragten Apr 7, 2020
837f763
Bumped version to 0.108.0
frenck Apr 8, 2020
245eae8
Bump pyW215 to 0.7.0 (#33786)
springstan Apr 7, 2020
3815837
Merge pull request #33814 from home-assistant/rc
frenck Apr 8, 2020
f5b7ded
Add counters for GitHub repo forks, clones, views (#33300)
renemarc Apr 8, 2020
a3e8479
Convert nws integration to component configuration (#31398)
MatthewFlamm Apr 8, 2020
57bbbbc
Update translations
frenck Apr 8, 2020
1c4b563
Bump pylutron-caseta version to 0.6.1 (#33815)
swails Apr 8, 2020
db9b6ab
Merge branch 'master' into dev
frenck Apr 8, 2020
7383e81
Convert nut to a multi step config flow (#33803)
bdraco Apr 8, 2020
8d61893
Use HTTP_OK constant (#33798)
springstan Apr 8, 2020
c3decc6
Do not ban supervisor ip if set (#33781)
MartinHjelmare Apr 8, 2020
10d25c7
Add script to clean up translations (#33802)
balloob Apr 8, 2020
5ff50e8
Update aioswitcher (#33821)
balloob Apr 8, 2020
3b246fb
Load integrations with requirements in device_automation (#33714)
jason0x43 Apr 8, 2020
cec3b57
Fix thermostats that do not support off under homekit (#33809)
bdraco Apr 8, 2020
ea709d0
Remove withings sleep state (#33817)
vangorra Apr 8, 2020
173c276
Lint
balloob Apr 8, 2020
292dcb7
Update sensor.py (#33788)
danbishop Apr 8, 2020
df744c5
Speed up TP-Link lights (#33606)
balloob Apr 8, 2020
d032489
Update to pyipp==0.9.1 (#33819)
ctalkington Apr 8, 2020
588409c
Fix isort problem in homeassistant/requirements.py (#33828)
basnijholt Apr 8, 2020
ceb1719
Fix kef DSP_SCAN_INTERVAL timedelta (#33825)
basnijholt Apr 8, 2020
0b715b7
Fix unhandled exception in Recollect Waste (#33823)
bachya Apr 8, 2020
b09b572
Accommodate mysql servers with a low wait_timeout (#33638)
bdraco Apr 8, 2020
7dd42bc
Separate august keypads into their own device (#33665)
bdraco Apr 8, 2020
2d1002d
Fix modbus transaction response (#33824)
janiversen Apr 8, 2020
15ab63a
UniFi: Add UDM/P (UniFi OS) support (#33766)
Kane610 Apr 8, 2020
fb8f813
Use HTTP_INTERNAL_SERVER_ERROR constant (#33832)
springstan Apr 8, 2020
ac94299
Add a config flow for flume (#33419)
bdraco Apr 8, 2020
9a40d5b
Use HTTP_NOT_FOUND constant (#33835)
springstan Apr 8, 2020
7cc6836
[ci skip] Translation update
homeassistant Apr 9, 2020
bdb998b
Fix last flaky TTS test (#33849)
balloob Apr 9, 2020
8be7cb4
Update nut to use DataUpdateCoordinator (#33831)
bdraco Apr 9, 2020
ff93630
Fix Doorbird yaml import aborted if discovery finds it first (#33843)
bdraco Apr 9, 2020
d494da2
Bump up ZHA dependencies (#33856)
Adminiuga Apr 9, 2020
daf941e
Fix missed async conversion in flume. (#33855)
bdraco Apr 9, 2020
b46eee0
Fix vizio bug that occurs when CONF_APPS isn't in config entry… (#33857)
raman325 Apr 9, 2020
21dfee8
Clean up access to config in various integrations v3 (#33842)
springstan Apr 9, 2020
1adb45f
Check status code on onvif snapshot (#33865)
balloob Apr 9, 2020
87e7e7f
Fix slide open/close percentage (#33739)
ualex73 Apr 9, 2020
3845539
Lookup manufacturer name for casts (#33845)
emontnemery Apr 9, 2020
dd7fbef
Fix modbus default delay (#33877)
janiversen Apr 9, 2020
45b28b8
Add local_ip unique_id & icon and single_instance_allowed (#33483)
Quentame Apr 9, 2020
90f7cd2
Fix nextcloud sensor mappings (#33840)
L-Henke Apr 9, 2020
a4c9446
Fix Monoprice robustness (#33869)
OnFreund Apr 9, 2020
70ee9d7
Updated frontend to 20200407.2 (#33891)
bramkragten Apr 9, 2020
bc26be3
Add and use HTTP_FORBIDDEN constant (#33839)
springstan Apr 9, 2020
32499dc
Fix onvif consistent return (#33898)
balloob Apr 9, 2020
c651ce0
Add Direct Message support for Discord integration (#33692)
vermium Apr 9, 2020
f2fbe65
Add tradfri cover model to the cover entity attributes (#33674)
i00 Apr 9, 2020
d510384
Remove print() from Bayesian Binary Sensor (#33916)
carlos-sarmiento Apr 9, 2020
4c38e6c
Use HTTP_BAD_REQUEST constant (#33797)
springstan Apr 9, 2020
9535dd8
Rename domain import in modbus (#33906)
janiversen Apr 9, 2020
425c976
Consolidate translation script (#33911)
balloob Apr 9, 2020
6b2baae
Fix tplink HS220 dimmers (#33909)
bdraco Apr 9, 2020
30c6ace
Rewrite MQTT & demo Lock tests (#33838)
frenck Apr 9, 2020
42ca566
Improve Plex debounce/throttle logic (#33805)
jjlawren Apr 9, 2020
127cc74
Bump pyvizio version for vizio (#33924)
raman325 Apr 9, 2020
c2d1db6
Exclude access token from host info updates in Konnected config flow …
kit-klein Apr 9, 2020
a000af5
Fix tplink HS220 dimmers (round 2) (#33928)
bdraco Apr 10, 2020
2edfa82
Guard IPP against negative ink levels (#33931)
ctalkington Apr 10, 2020
e9c412b
Migrate translations upload (#33926)
balloob Apr 10, 2020
e9e1ec5
Migrate translations clean script (#33930)
balloob Apr 10, 2020
9b7e31e
Make f-strings without placeholder normal strings (#33938)
scop Apr 10, 2020
8e188d7
Make homekit aware of DEVICE_CLASS_GATE (#33936)
bdraco Apr 10, 2020
bc03635
UniFi - Roaming clients should be considered connected (#33942)
Kane610 Apr 10, 2020
a0b3a9e
Discover manually added casts (#33922)
emontnemery Apr 10, 2020
7b9585c
Fix Onvif Camera that does not have SnapshotUri such as Sricam (#33902)
Minims Apr 10, 2020
ca0648a
Fix powerwall units (kW) (#33954)
bdraco Apr 10, 2020
78d87dc
Use TEMP_CELSIUS constant (#33963)
springstan Apr 10, 2020
496da88
Fix turning off/on light groups in homekit (#33965)
Knapoc Apr 10, 2020
6d3046c
Remove support for cast dynamic speaker groups (#33884)
emontnemery Apr 10, 2020
c3c4752
Update pyipp to 0.9.2 (#33967)
ctalkington Apr 10, 2020
02c9e47
Use ENERGY_KILO_WATT_HOUR constant (#33962)
springstan Apr 10, 2020
2519824
Use TEMP_FAHRENHEIT constant (#33969)
springstan Apr 10, 2020
cfef8ee
Handle 304 http responses in nexia (#33972)
bdraco Apr 10, 2020
8198970
Clean up ssl usage (#33960)
springstan Apr 10, 2020
14c35c9
Fix shutdown timeout and make it upstream with Supervisor (#33973)
pvizeli Apr 10, 2020
13dda7b
Cleanup ZHA group entity lifecycle (#33977)
dmulcahey Apr 10, 2020
294a2d2
Exclude non thermostats from being detected by nexia (#33979)
bdraco Apr 10, 2020
8e6e8df
Migrate translations_develop script (#33933)
balloob Apr 10, 2020
302e631
Ability to mock long poll requests + refactor qwikswitch unit… (#33804)
ziv1234 Apr 10, 2020
de3f5e8
Use zeroconf UUID if not available via IPP properties (#33991)
ctalkington Apr 10, 2020
dfc66b2
Rewrite parts of upnp component (#33108)
StevenLooman Apr 10, 2020
5b5a232
Add new Econet attributes (#33795)
richardpowellus Apr 10, 2020
c8aa554
Undo NUT update listener on config reload (#33986)
bdraco Apr 10, 2020
1db6e9f
Fix Rachio binary sensor cold reboot (#33959)
brg468 Apr 11, 2020
32e87fc
[ci skip] Translation update
homeassistant Apr 11, 2020
04c4501
Add and use UNIT_VOLT constant (#33994)
springstan Apr 11, 2020
328cadb
Use LENGTH_KILOMETERS constant (#33976)
springstan Apr 11, 2020
5ea4a68
Cleanup ZHA metering and electrical measurement channels (#33992)
dmulcahey Apr 11, 2020
44f8dab
Add changed_by to elkm1 alarm device_state_attributes (#33982)
bdraco Apr 11, 2020
c1962a4
Read min and max mireds from ZHA lights (#33983)
dmulcahey Apr 11, 2020
569057c
Bump up zha dependencies. (#33997)
Adminiuga Apr 11, 2020
c3542f8
Vizio dependency version bump (#34002)
raman325 Apr 11, 2020
671e324
update strings.json to match device name in manifest (#34003)
raman325 Apr 11, 2020
19ce367
Upgrade TwitterAPI to 2.5.11 (#34006)
fabaff Apr 11, 2020
2dc6ba0
Upgrade getmac to 0.8.2 (#34013)
fabaff Apr 11, 2020
c6a86ed
Upgrade sendgrid to 6.2.1 (#34014)
fabaff Apr 11, 2020
52e154f
Upgrade mutagen to 1.44.0 (#34011)
fabaff Apr 11, 2020
11ee014
Upgrade discord.py to 1.3.3 (#34008)
fabaff Apr 11, 2020
2af9f4f
Upgrade distro to 1.5.0 (#34009)
fabaff Apr 11, 2020
91e7bcb
Upgrade beautifulsoup4 to 4.9.0 (#34007)
fabaff Apr 11, 2020
df121c2
Upgrade numpy to 1.18.2 (#34012)
fabaff Apr 11, 2020
e88af54
Fix docstring in test_util/aiohttp.py (#34024)
ziv1234 Apr 11, 2020
9aa0e76
Update codeowners for seven_segments (#34027)
fabaff Apr 11, 2020
2ab7911
Upgrade geopy to 1.21.0 (#34026)
fabaff Apr 11, 2020
f839ba0
Use POWER_WATT constant (#33984)
springstan Apr 11, 2020
c18a6d5
Fix #33995 Use "now" if departure is None (#34017)
eifinger Apr 11, 2020
b893150
Add and use UNIT_DEGREE constant (#33978)
springstan Apr 11, 2020
d5f7337
Upgrade pillow to 7.1.1 (#34025)
fabaff Apr 11, 2020
8c4a139
Add config_flow for Roomba (#33302)
cyr-ius Apr 11, 2020
946b77e
Use ZigbeeException instead of DeliveryError in ZHA (#33993)
dmulcahey Apr 11, 2020
6e6ebb9
Add tests for various NUT upses (#34034)
bdraco Apr 11, 2020
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
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ omit =
homeassistant/components/pencom/switch.py
homeassistant/components/philips_js/media_player.py
homeassistant/components/pi_hole/sensor.py
homeassistant/components/pi4ioe5v9xxxx/binary_sensor.py
homeassistant/components/pi4ioe5v9xxxx/switch.py
homeassistant/components/picotts/tts.py
homeassistant/components/piglow/light.py
homeassistant/components/pilight/*
Expand Down Expand Up @@ -688,8 +690,9 @@ omit =
homeassistant/components/syncthru/sensor.py
homeassistant/components/synology/camera.py
homeassistant/components/synology_chat/notify.py
homeassistant/components/synology_dsm/__init__.py
homeassistant/components/synology_dsm/sensor.py
homeassistant/components/synology_srm/device_tracker.py
homeassistant/components/synologydsm/sensor.py
homeassistant/components/syslog/notify.py
homeassistant/components/systemmonitor/sensor.py
homeassistant/components/tado/*
Expand Down
2 changes: 1 addition & 1 deletion .github/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ only: pulls

# Optionally, specify configuration settings just for `issues` or `pulls`
issues:
daysUntilLock: 30
daysUntilLock: 30
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
Expand Down Expand Up @@ -40,12 +45,23 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-executables-have-shebangs
stages: [manual]
- id: check-json
- id: no-commit-to-branch
args:
- --branch=dev
- --branch=master
- --branch=rc
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.21.0
hooks:
- id: yamllint
- repo: https://github.com/prettier/prettier
rev: 2.0.4
hooks:
- id: prettier
stages: [manual]
- repo: local
hooks:
# Run mypy through our wrapper script in order to get the possible
Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.md
azure-*.yml
docs/source/_templates/*
homeassistant/components/*/.translations/*.json
tests/fixtures/*
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "ms-python.python"]
}
61 changes: 61 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
ignore: |
azure-*.yml
rules:
braces:
level: error
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
brackets:
level: error
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
colons:
level: error
max-spaces-before: 0
max-spaces-after: 1
commas:
level: error
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
level: error
require-starting-space: true
min-spaces-from-content: 2
comments-indentation:
level: error
document-end:
level: error
present: false
document-start:
level: error
present: false
empty-lines:
level: error
max: 1
max-start: 0
max-end: 1
hyphens:
level: error
max-spaces-after: 1
indentation:
level: error
spaces: 2
indent-sequences: true
check-multi-line-strings: false
key-duplicates:
level: error
line-length: disable
new-line-at-end-of-file:
level: error
new-lines:
level: error
type: unix
trailing-spaces:
level: error
truthy:
level: error
11 changes: 8 additions & 3 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ homeassistant/components/brother/* @bieniu
homeassistant/components/brunt/* @eavanvalkenburg
homeassistant/components/bt_smarthub/* @jxwolstenholme
homeassistant/components/buienradar/* @mjj4791 @ties
homeassistant/components/cast/* @emontnemery
homeassistant/components/cert_expiry/* @Cereal2nd @jjlawren
homeassistant/components/cisco_ios/* @fbradyirl
homeassistant/components/cisco_mobility_express/* @fbradyirl
Expand Down Expand Up @@ -120,7 +121,7 @@ homeassistant/components/filter/* @dgomes
homeassistant/components/fitbit/* @robbiet480
homeassistant/components/fixer/* @fabaff
homeassistant/components/flock/* @fabaff
homeassistant/components/flume/* @ChrisMandich
homeassistant/components/flume/* @ChrisMandich @bdraco
homeassistant/components/flunearyou/* @bachya
homeassistant/components/fortigate/* @kifeo
homeassistant/components/fortios/* @kimfrellsen
Expand Down Expand Up @@ -236,7 +237,7 @@ homeassistant/components/modbus/* @adamchengtkc @janiversen
homeassistant/components/monoprice/* @etsinko
homeassistant/components/moon/* @fabaff
homeassistant/components/mpd/* @fabaff
homeassistant/components/mqtt/* @home-assistant/core
homeassistant/components/mqtt/* @home-assistant/core @emontnemery
homeassistant/components/msteams/* @peroyvind
homeassistant/components/myq/* @bdraco
homeassistant/components/mysensors/* @MartinHjelmare
Expand Down Expand Up @@ -269,6 +270,7 @@ homeassistant/components/ohmconnect/* @robbiet480
homeassistant/components/ombi/* @larssont
homeassistant/components/onboarding/* @home-assistant/core
homeassistant/components/onewire/* @garbled1
homeassistant/components/openerz/* @misialq
homeassistant/components/opentherm_gw/* @mvn23
homeassistant/components/openuv/* @bachya
homeassistant/components/openweathermap/* @fabaff
Expand All @@ -280,6 +282,7 @@ homeassistant/components/panel_iframe/* @home-assistant/frontend
homeassistant/components/pcal9535a/* @Shulyaka
homeassistant/components/persistent_notification/* @home-assistant/core
homeassistant/components/philips_js/* @elupus
homeassistant/components/pi4ioe5v9xxxx/* @antonverburg
homeassistant/components/pi_hole/* @fabaff @johnluetke
homeassistant/components/pilight/* @trekky12
homeassistant/components/plaato/* @JohNan
Expand Down Expand Up @@ -311,7 +314,7 @@ homeassistant/components/rfxtrx/* @danielhiversen
homeassistant/components/ring/* @balloob
homeassistant/components/rmvtransport/* @cgtobi
homeassistant/components/roku/* @ctalkington
homeassistant/components/roomba/* @pschmitt
homeassistant/components/roomba/* @pschmitt @cyr-ius
homeassistant/components/safe_mode/* @home-assistant/core
homeassistant/components/saj/* @fredericvl
homeassistant/components/salt/* @bjornorri
Expand All @@ -325,6 +328,7 @@ homeassistant/components/sense/* @kbickar
homeassistant/components/sensibo/* @andrey-git
homeassistant/components/sentry/* @dcramer
homeassistant/components/serial/* @fabaff
homeassistant/components/seven_segments/* @fabaff
homeassistant/components/seventeentrack/* @bachya
homeassistant/components/shell_command/* @home-assistant/core
homeassistant/components/shiftr/* @fabaff
Expand Down Expand Up @@ -369,6 +373,7 @@ homeassistant/components/switchbot/* @danielhiversen
homeassistant/components/switcher_kis/* @tomerfi
homeassistant/components/switchmate/* @danielhiversen
homeassistant/components/syncthru/* @nielstron
homeassistant/components/synology_dsm/* @ProtoThis @Quentame
homeassistant/components/synology_srm/* @aerialls
homeassistant/components/syslog/* @fabaff
homeassistant/components/tado/* @michaelarnauts @bdraco
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
ARG BUILD_FROM
FROM ${BUILD_FROM}

ENV \
S6_SERVICES_GRACETIME=60000

WORKDIR /usr/src

## Setup Home Assistant
COPY . homeassistant/
RUN pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
RUN \
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
-r homeassistant/requirements_all.txt -c homeassistant/homeassistant/package_constraints.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
-e ./homeassistant \
Expand Down
21 changes: 19 additions & 2 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ resources:
variables:
- name: PythonMain
value: '37'
- group: codecov

stages:

Expand All @@ -44,6 +43,10 @@ stages:
. venv/bin/activate
pip install -r requirements_test.txt -c homeassistant/package_constraints.txt
pre-commit install-hooks
- script: |
. venv/bin/activate
pre-commit run --hook-stage manual check-executables-have-shebangs --all-files
displayName: 'Run executables check'
- script: |
. venv/bin/activate
pre-commit run codespell --all-files
Expand All @@ -64,6 +67,20 @@ stages:
. venv/bin/activate
pre-commit run check-json --all-files
displayName: 'Run check-json'
- script: |
. venv/bin/activate
pre-commit run yamllint --all-files
displayName: 'Run yamllint'
- script: |
. venv/bin/activate
pre-commit run pyupgrade --all-files --show-diff-on-failure
displayName: 'Run pyupgrade'
# Prettier seems to hang on Azure, unknown why yet.
# Temporarily disable the check to no block PRs
# - script: |
# . venv/bin/activate
# pre-commit run prettier --all-files --show-diff-on-failure
# displayName: 'Run prettier'
- job: 'Validate'
pool:
vmImage: 'ubuntu-latest'
Expand Down Expand Up @@ -148,7 +165,7 @@ stages:

. venv/bin/activate
pytest --timeout=9 --durations=10 -n auto --dist=loadfile --cov homeassistant --cov-report html -qq -o console_output_style=count -p no:sugar tests
#codecov --token $(codecovToken)
codecov --token $(codecovToken)
script/check_dirty
displayName: 'Run pytest for python $(python.container) / coverage'
condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain']))
Expand Down
5 changes: 2 additions & 3 deletions azure-pipelines-translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
export LOKALISE_TOKEN="$(lokaliseToken)"
export AZURE_BRANCH="$(Build.SourceBranchName)"

./script/translations_upload
python3 -m script.translations upload
displayName: 'Upload Translation'

- job: 'Download'
Expand All @@ -54,9 +54,8 @@ jobs:
- template: templates/azp-step-git-init.yaml@azure
- script: |
export LOKALISE_TOKEN="$(lokaliseToken)"
export AZURE_BRANCH="$(Build.SourceBranchName)"

./script/translations_download
python3 -m script.translations download
displayName: 'Download Translation'
- script: |
git checkout dev
Expand Down
12 changes: 1 addition & 11 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,4 @@ coverage:
default:
target: 90
threshold: 0.09
notify:
# Notify codecov room in Discord. The webhook URL (encrypted below) ends in /slack which is why we configure a Slack notification.
slack:
default:
url: "secret:TgWDUM4Jw0w7wMJxuxNF/yhSOHglIo1fGwInJnRLEVPy2P2aLimkoK1mtKCowH5TFw+baUXVXT3eAqefbdvIuM8BjRR4aRji95C6CYyD0QHy4N8i7nn1SQkWDPpS8IthYTg07rUDF7s5guurkKv2RrgoCdnnqjAMSzHoExMOF7xUmblMdhBTWJgBpWEhASJy85w/xxjlsE1xoTkzeJu9Q67pTXtRcn+5kb5/vIzPSYg="
comment:
require_changes: yes
layout: reach
branches:
- master
- !dev
comment: false
30 changes: 15 additions & 15 deletions docs/source/_ext/edit_on_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
import os
import warnings

__licence__ = 'BSD (3 clause)'
__licence__ = "BSD (3 clause)"


def get_github_url(app, view, path):
github_fmt = 'https://github.com/{}/{}/{}/{}{}'
return (
github_fmt.format(app.config.edit_on_github_project, view,
app.config.edit_on_github_branch,
app.config.edit_on_github_src_path, path))
f"https://github.com/{app.config.edit_on_github_project}/"
f"{view}/{app.config.edit_on_github_branch}/"
f"{app.config.edit_on_github_src_path}{path}"
)


def html_page_context(app, pagename, templatename, context, doctree):
if templatename != 'page.html':
if templatename != "page.html":
return

if not app.config.edit_on_github_project:
Expand All @@ -29,16 +29,16 @@ def html_page_context(app, pagename, templatename, context, doctree):
if not doctree:
warnings.warn("doctree is None")
return
path = os.path.relpath(doctree.get('source'), app.builder.srcdir)
show_url = get_github_url(app, 'blob', path)
edit_url = get_github_url(app, 'edit', path)
path = os.path.relpath(doctree.get("source"), app.builder.srcdir)
show_url = get_github_url(app, "blob", path)
edit_url = get_github_url(app, "edit", path)

context['show_on_github_url'] = show_url
context['edit_on_github_url'] = edit_url
context["show_on_github_url"] = show_url
context["edit_on_github_url"] = edit_url


def setup(app):
app.add_config_value('edit_on_github_project', '', True)
app.add_config_value('edit_on_github_branch', 'master', True)
app.add_config_value('edit_on_github_src_path', '', True) # 'eg' "docs/"
app.connect('html-page-context', html_page_context)
app.add_config_value("edit_on_github_project", "", True)
app.add_config_value("edit_on_github_branch", "master", True)
app.add_config_value("edit_on_github_src_path", "", True) # 'eg' "docs/"
app.connect("html-page-context", html_page_context)
Loading