Skip to content
Closed

Atome #26044

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
207cf18
Bump version to 0.97.0b0
balloob Jul 31, 2019
59b42b4
Expose comfort presets as HA presets (#25491)
balloob Aug 1, 2019
d3f6c43
Fix handling of empty results from Rejseplanen (#25610)
DarkFox Aug 1, 2019
7168dd6
bump quirks (#25618)
dmulcahey Aug 1, 2019
56ca0ed
Handle disabled devices (#25625)
Kane610 Aug 1, 2019
414b85c
Fix polling HomeKit devices with multiple services per accessory (#25…
Jc2k Aug 1, 2019
725d5c6
Meteofrance improve log error messages (#25630)
oncleben31 Aug 1, 2019
1d5709f
Bump homekit_python to 0.15 (#25631)
Jc2k Aug 1, 2019
476a727
Filter out empty results in history API (#25633)
balloob Aug 1, 2019
a8c4fc3
Upgrade hass-nabucasa to 0.16 (#25636)
balloob Aug 1, 2019
d64730a
Updated frontend to 20190801.0
balloob Aug 1, 2019
ad341e2
Bumped version to 0.97.0b1
balloob Aug 1, 2019
949875a
Updated frontend to 20190804.0
balloob Aug 5, 2019
8d1deef
Feature zwave preset modes (#25537)
Santobert Aug 2, 2019
e001b12
Add PRESET_AWAY to HomematicIP Cloud climate (#25641)
Aug 3, 2019
b40d324
UniFi - allow configuration to not track clients or devices (#25642)
Kane610 Aug 2, 2019
d95c86e
Add preset to be away and eco (#25643)
balloob Aug 1, 2019
4766077
Revert flux_led to 0.89 (#25653)
amelchio Aug 2, 2019
7a71669
Options to not track wired clients (#25669)
Kane610 Aug 2, 2019
f8753a0
Fix issue with incorrect Notion bridge IDs (#25683)
bachya Aug 4, 2019
2925f9e
In some circumstances device.last_seen can be None (#25690)
Kane610 Aug 4, 2019
4e2094c
UniFi - reverse connectivity logic (#25691)
Kane610 Aug 4, 2019
868c6f4
Fix roku lxml requirement (#25696)
pvizeli Aug 4, 2019
6e61b21
Bumped version to 0.97.0b2
balloob Aug 5, 2019
387323a
Updated frontend to 20190805.0
balloob Aug 6, 2019
e1c23b1
Add HmIP-SCI to Homematic IP Cloud, Fix HmIP-SWDM (#25639)
Aug 1, 2019
b011dd0
Bump envoy_reader to 0.8.6, fix missing dependency (#25679)
jesserizzo Aug 5, 2019
eceef82
Add service to reload scenes from configuration.yaml (#25680)
balloob Aug 5, 2019
fee1568
Update HTTP defaults (#25702)
balloob Aug 5, 2019
27cfda1
UniFi - handle device not having a name (#25713)
Kane610 Aug 6, 2019
d702b17
Bumped version to 0.97.0b3
balloob Aug 6, 2019
3a78250
Bump hdate==0.9.0 (use pytz instead of dateutil) (#25726)
tsvi Aug 6, 2019
a1302a9
initial commit (#25731)
zxdavb Aug 6, 2019
52de2f4
Revert emulated hue changes (#25732)
balloob Aug 6, 2019
609118d
Fix last seen not available on certain devices (#25735)
Kane610 Aug 6, 2019
0f8f4f4
Bumped version to 0.97.0
balloob Aug 7, 2019
a20c631
Update requirements
balloob Aug 7, 2019
dffdbda
Merge pull request #25756 from home-assistant/rc
balloob Aug 7, 2019
e355012
Update HIBP sensor to use API v3 and API Key (#25699)
aetaric Aug 9, 2019
ebf8d5f
Update Cisco Mobility Express module version (#25770)
fbradyirl Aug 8, 2019
34b5083
Don't track unstable attributes (#25787)
jjlawren Aug 8, 2019
20e279a
Fix deconz allow_clip_sensor and allow_deconz_groups options (#25811)
Anonym-tsk Aug 9, 2019
e1fee1b
Bumped version to 0.97.1
balloob Aug 9, 2019
e57ecc9
Fix brightness type (#25818)
andrewsayre Aug 9, 2019
77d984e
Add script to install locale (#25791)
Santobert Aug 9, 2019
7cbb818
Merge pull request #25819 from home-assistant/rc
balloob Aug 9, 2019
48e42d8
Fix eco preset for Wink Air Conditioner (#25763)
cameronrmorris Aug 10, 2019
0eb93db
Update pyvera to 0.3.3 (#25820)
brandond Aug 9, 2019
9afb6c3
Fix Netatmo climate issue (#25830)
cgtobi Aug 10, 2019
0c815ea
Fix KNX Climate mode change callback (#25851)
tombbo Aug 10, 2019
a061310
Always populate hvac_modes in SmartThings climate platform (#25859)
andrewsayre Aug 11, 2019
f03538f
UniFi - Use state to know if device is online (#25876)
Kane610 Aug 11, 2019
38412fd
Fix issue with nuki new available state (#25881)
pvizeli Aug 12, 2019
38c6738
Bumped version to 0.97.2
balloob Aug 12, 2019
c58f3a4
Merge pull request #25884 from home-assistant/rc
balloob Aug 12, 2019
8d16446
first commit of atome component
BaQs Aug 17, 2019
13898ef
sanatizing + fixed some errors handling
BaQs Aug 17, 2019
bc4c466
fixed re-login
BaQs Aug 18, 2019
bedf2cb
updated coverage for atom which relies on external API
BaQs Aug 18, 2019
87a5858
Proper manifest for atome
BaQs Aug 18, 2019
d6443c3
Added default power class for Atome
BaQs Aug 18, 2019
80f632c
flake8 rules are now respected
BaQs Aug 18, 2019
b4fec69
some pylint fixes
BaQs Aug 18, 2019
7f317b8
Again, some flake8 fixes...
BaQs Aug 18, 2019
10d63e4
Fritz device tracker: set 'scanning' log to debug (#26043)
ThaSiouL Aug 18, 2019
d4981a1
Fix Mikrotik ARP ping (#25965)
slackr31337 Aug 18, 2019
9505981
First line should be in imperative mood
BaQs Aug 18, 2019
1c34247
flake8 stupidity...
BaQs Aug 18, 2019
62798f4
Flake8 fixes
BaQs Aug 18, 2019
06de9dc
Just a test
BaQs Aug 18, 2019
3463cc9
Make sure config flows extend ConfigFlow base class (#26051)
balloob Aug 18, 2019
34f7bb5
Revert "Fix bmw_connected_drive and eq3btsmart components by updating…
pvizeli Aug 19, 2019
6b80df9
Bump nabucasa-cloud to 0.17 (#26066)
pvizeli Aug 19, 2019
15ab004
fix alarm webhooks (#26062)
fredrike Aug 19, 2019
75e18d4
Add Keba charging station/wallbox as component (#24484)
dannerph Aug 19, 2019
1077ec1
Add packages version to Tensoflow for wheels packages (#26068)
pvizeli Aug 19, 2019
a38bdc4
Remove reference to typing.Deque (added in Python 3.6.1) (#26030)
jkeljo Aug 19, 2019
45aec2e
huawei_lte: support out of range values in default sensor formatter (…
flebourse Aug 19, 2019
b867e33
SMA simplify config (#25880)
kellerza Aug 19, 2019
e41c002
Add config entry options support to deCONZ (#26049)
Kane610 Aug 19, 2019
d1483b6
pysma library update 0.3.4 (#26075)
kellerza Aug 19, 2019
a1dbdbb
Save config entry after updating system options (#26077)
balloob Aug 19, 2019
1fe3b14
Updated frontend to 20190820.0
balloob Aug 20, 2019
93a800a
Convert progress API to WS (#26082)
balloob Aug 20, 2019
eee2b2d
Add Minio component (#23567)
tkislan Aug 20, 2019
c5ca431
Add path option to SABnzbd component (#25908)
cj-thornton Aug 20, 2019
178d0d2
Update devcontainer.json
pvizeli Aug 20, 2019
a347a41
Add strings for traccar config flow (#26089)
balloob Aug 20, 2019
0e45042
Update pyrainbird to version 0.2.1 to fix zone number (#26064)
konikvranik Aug 20, 2019
daa0330
Update pylacrosse library to version 0.4.0 (#26088)
legacycode Aug 20, 2019
97d3f49
Docker ADR (#26085)
pvizeli Aug 20, 2019
33c35a6
Bump geniushub client (#26084)
zxdavb Aug 20, 2019
cf2d927
Use init_subclass for Config Entries (#26059)
balloob Aug 20, 2019
7fd53ac
Sonos playlists play media (#26054)
ahertz Aug 20, 2019
d96edea
Remove the googlehome integration (#26035)
ludeeus Aug 20, 2019
4bce1ef
Test with 3.6.0 in Travis (#26039)
scop Aug 20, 2019
f34b84a
add id to state attributes (#26086)
sander76 Aug 20, 2019
5c91a6c
Fix open-ui cli arg (#26091)
balloob Aug 20, 2019
000d3d4
[bugfix] Exception if vendor's servers are currently unavailable (#26…
wolph Aug 20, 2019
21a9460
Bump up zha dependencies. (#26097)
Adminiuga Aug 20, 2019
2fbe01f
Updated frontend to 20190820.1
balloob Aug 20, 2019
38ce403
Update bimmer_connected to 0.6.0 (#26098)
gerard33 Aug 21, 2019
f80c9c9
Add support for warning attributes to Homematic IP Cloud (#26103)
SukramJ Aug 21, 2019
cf505c6
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 21, 2019
08d797e
check if a light supports brightness (#26055)
croghostrider Aug 21, 2019
46bfd5e
bump quirks (#26106)
dmulcahey Aug 21, 2019
39d62b4
Upgrade ruamel_yaml to 0.15.100 (#26095)
BKPepe Aug 21, 2019
8f044cf
Upgrade pydocstyle to 4.0.1 (#26111)
scop Aug 21, 2019
48e9e53
Upgrade pytest to 5.1.1 (#26112)
scop Aug 21, 2019
e033e46
Remove coveralls test dependency (#26110)
scop Aug 21, 2019
9b1315d
Check and fix test suite leaving files behind (#25981)
scop Aug 21, 2019
ce54ae3
Update PyEssent (#26115)
TheLastProject Aug 21, 2019
95f660f
remove ATTR_ID for groups (#26114)
SukramJ Aug 21, 2019
7ab36e0
Update eternalegypt to 0.0.10 (#26117)
amelchio Aug 21, 2019
588eac8
UniFi config entry options (#26113)
Kane610 Aug 21, 2019
9bcb489
Template binary sensor attributes (#22664)
gadgetchnnel Aug 21, 2019
7090970
Add descriptive fields to script config (#26056)
JeffLIrion Aug 21, 2019
4a6f722
Updated frontend to 20190821.0
balloob Aug 21, 2019
da58604
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
8130c11
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
f632252
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
51b8424
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
459bf6c
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
3526d50
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
a278660
Wrong get data function
BaQs Aug 21, 2019
34e4e96
Do not deserver yet to be code owner
BaQs Aug 21, 2019
f9e518d
Fix tests leaving files behind (#26121)
balloob Aug 21, 2019
12f964c
Statistics sensors repect given name (#26119)
frenck Aug 21, 2019
c90e8ba
Merge remote-tracking branch 'origin/master' into dev
balloob Aug 21, 2019
9a16b7b
Update azure-pipelines-release.yml for Azure Pipelines (#26128)
pvizeli Aug 22, 2019
b3ae6a2
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 22, 2019
f793c71
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 22, 2019
2b78bfa
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 22, 2019
be07396
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 22, 2019
bc5cec9
Add myself as codeowner to HmIP Cloud (#26140)
SukramJ Aug 22, 2019
82b1b10
Splitt device_state_attributes between device and group for Homematic…
SukramJ Aug 22, 2019
2d432da
DuckDNS setup backoff (#25899)
kellerza Aug 22, 2019
a61a367
Added proper codeowner
BaQs Aug 22, 2019
aff151c
Load user-provided descriptions for python_scripts (#26069)
JeffLIrion Aug 22, 2019
bc17170
Fix tuya switch state (#26145)
PaulAnnekov Aug 22, 2019
bff5b00
Nissanleaf login fix (#26139)
filcole Aug 22, 2019
b7b8edc
Added pyatome requirement for Atome new platform
BaQs Aug 22, 2019
a3461d5
Black reformatted
BaQs Aug 22, 2019
93c577f
Update .coveragerc
BaQs Aug 22, 2019
aa56b4d
Log warning if disabled entities receive updates. (#26143)
balloob Aug 22, 2019
2e54811
first commit of atome component
BaQs Aug 17, 2019
27d710a
sanatizing + fixed some errors handling
BaQs Aug 17, 2019
ba51bf6
fixed re-login
BaQs Aug 18, 2019
c8d12f1
updated coverage for atom which relies on external API
BaQs Aug 18, 2019
3f5baf2
Proper manifest for atome
BaQs Aug 18, 2019
cca54be
Added default power class for Atome
BaQs Aug 18, 2019
d27f127
flake8 rules are now respected
BaQs Aug 18, 2019
f5e891a
some pylint fixes
BaQs Aug 18, 2019
00ff1b7
Again, some flake8 fixes...
BaQs Aug 18, 2019
e3d0608
First line should be in imperative mood
BaQs Aug 18, 2019
0a1658d
flake8 stupidity...
BaQs Aug 18, 2019
4d37e4b
Flake8 fixes
BaQs Aug 18, 2019
f5ff16c
Just a test
BaQs Aug 18, 2019
2b7d658
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
c762d99
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
9971a67
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
071749b
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
0491cd9
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
ce1ec8f
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
70c5b83
Wrong get data function
BaQs Aug 21, 2019
1f01cb1
Do not deserver yet to be code owner
BaQs Aug 21, 2019
e9f218e
Added proper codeowner
BaQs Aug 22, 2019
1f06a3c
Added pyatome requirement for Atome new platform
BaQs Aug 22, 2019
1113349
Black reformatted
BaQs Aug 22, 2019
5d5361f
Update .coveragerc
BaQs Aug 22, 2019
3a96ac4
Logging
Aug 22, 2019
6e326f5
New pyAtome version
Aug 22, 2019
92301a7
Resolved conflicts
Aug 22, 2019
a4eeaac
Updated frontend to 20190822.0
balloob Aug 22, 2019
12aedb7
PyAtome 0.0.11 is now necessary
Aug 22, 2019
f704a8e
Reload config entry when entity enabled in entity registry, remove en…
balloob Aug 23, 2019
432f656
Venstar: define success for all branches of set_temperature() (#26148)
iamtpage Aug 23, 2019
2b6c5ee
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli Aug 23, 2019
17750a6
Add NWS weather (#23647)
MatthewFlamm Aug 23, 2019
55031e6
Bump androidtv to 0.0.24 (#26158)
JeffLIrion Aug 23, 2019
1efa29d
CoolMaster: Change auto to heat_cool (#26144)
OnFreund Aug 23, 2019
decf13b
Use literal string interpolation in core (f-strings) (#26166)
frenck Aug 23, 2019
3deeac6
fix issue setting scan_interval (#26165)
chaoranxie Aug 23, 2019
691e3f6
Allow bumping version for nightly builds (#26167)
balloob Aug 23, 2019
059ae2b
Update ambiclimate library (#26182)
Danielhiversen Aug 24, 2019
ef1a444
Proper exception handling, now need pyatome 0.0.15
Aug 24, 2019
54cbd69
Requirement
Aug 24, 2019
7238eb9
Fix possible KeyError in SimpliSafe (#26190)
bachya Aug 25, 2019
d4bd5a1
Refactor open garage (#26179)
Danielhiversen Aug 25, 2019
448ee10
first commit of atome component
BaQs Aug 17, 2019
8f4ed55
sanatizing + fixed some errors handling
BaQs Aug 17, 2019
133237b
fixed re-login
BaQs Aug 18, 2019
3645e91
updated coverage for atom which relies on external API
BaQs Aug 18, 2019
154a971
Proper manifest for atome
BaQs Aug 18, 2019
20731ab
Added default power class for Atome
BaQs Aug 18, 2019
821a0d8
flake8 rules are now respected
BaQs Aug 18, 2019
def6517
some pylint fixes
BaQs Aug 18, 2019
5038c22
Again, some flake8 fixes...
BaQs Aug 18, 2019
45acde4
First line should be in imperative mood
BaQs Aug 18, 2019
6fa4c7c
flake8 stupidity...
BaQs Aug 18, 2019
55f06d2
Flake8 fixes
BaQs Aug 18, 2019
7b04dc7
Just a test
BaQs Aug 18, 2019
0dd3594
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
0cece00
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
c1c15c6
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
891d2fd
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
d91b0ec
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
2f2f8ea
Export external calls to PyAtome pypi package
BaQs Aug 21, 2019
debccfa
Wrong get data function
BaQs Aug 21, 2019
737fc7d
Do not deserver yet to be code owner
BaQs Aug 21, 2019
7b2ccb0
Added proper codeowner
BaQs Aug 22, 2019
816ae49
Added pyatome requirement for Atome new platform
BaQs Aug 22, 2019
fb7851a
Black reformatted
BaQs Aug 22, 2019
57639b0
Update .coveragerc
BaQs Aug 22, 2019
8150a64
first commit of atome component
BaQs Aug 17, 2019
1b610e3
Logging
Aug 22, 2019
aa48a72
Proper exception handling, now need pyatome 0.0.15
Aug 24, 2019
747ba8f
Requirement
Aug 24, 2019
1cc886a
Merge branch 'atome' of https://github.com/baqs/home-assistant into a…
Aug 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ omit =
homeassistant/components/arwn/sensor.py
homeassistant/components/asterisk_cdr/mailbox.py
homeassistant/components/asterisk_mbox/*
homeassistant/components/atome/*
homeassistant/components/asuswrt/device_tracker.py
homeassistant/components/august/*
homeassistant/components/aurora_abb_powerone/sensor.py
Expand Down Expand Up @@ -241,7 +242,6 @@ omit =
homeassistant/components/google_cloud/tts.py
homeassistant/components/google_maps/device_tracker.py
homeassistant/components/google_travel_time/sensor.py
homeassistant/components/googlehome/*
homeassistant/components/gpmdp/media_player.py
homeassistant/components/gpsd/sensor.py
homeassistant/components/greeneye_monitor/*
Expand Down Expand Up @@ -308,6 +308,7 @@ omit =
homeassistant/components/joaoapps_join/*
homeassistant/components/juicenet/*
homeassistant/components/kankun/switch.py
homeassistant/components/keba/*
homeassistant/components/keenetic_ndms2/device_tracker.py
homeassistant/components/keyboard/*
homeassistant/components/keyboard_remote/*
Expand Down Expand Up @@ -377,6 +378,7 @@ omit =
homeassistant/components/miflora/sensor.py
homeassistant/components/mikrotik/*
homeassistant/components/mill/climate.py
homeassistant/components/minio/*
homeassistant/components/mitemp_bt/sensor.py
homeassistant/components/mjpeg/camera.py
homeassistant/components/mobile_app/*
Expand Down
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
{
"name": "Home Assistant Dev",
"context": "..",
"dockerFile": "Dockerfile",
"dockerFile": "../Dockerfile.dev",
"postCreateCommand": "pip3 install -e .",
"appPort": 8123,
"runArgs": [
"-e", "GIT_EDITOR='code --wait'"
"-e",
"GIT_EDITOR=\"code --wait\""
],
"extensions": [
"ms-python.python",
Expand All @@ -31,4 +32,4 @@
"!include_dir_merge_named scalar"
]
}
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ pip-log.txt
# Unit test / coverage reports
.coverage
.tox
coverage.xml
nosetests.xml
htmlcov/
test-reports/
test-results.xml

# Translations
*.mo
Expand Down Expand Up @@ -122,3 +124,6 @@ desktop.ini

# monkeytype
monkeytype.sqlite3

# This is left behind by Azure Restore Cache
tmp_cache
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ addons:
matrix:
fast_finish: true
include:
- python: "3.6"
- python: "3.6.0"
env: TOXENV=lint
- python: "3.6"
dist: trusty
- python: "3.6.0"
env: TOXENV=pylint
- python: "3.6"
dist: trusty
- python: "3.6.0"
env: TOXENV=typing
- python: "3.6"
dist: trusty
- python: "3.6.0"
env: TOXENV=py36
dist: trusty
- python: "3.7"
env: TOXENV=py37

Expand Down
12 changes: 7 additions & 5 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ homeassistant/*.py @home-assistant/core
homeassistant/helpers/* @home-assistant/core
homeassistant/util/* @home-assistant/core

# Virtualization
Dockerfile @home-assistant/docker
virtualization/Docker/* @home-assistant/docker

# Other code
homeassistant/scripts/check_config.py @kellerza

Expand All @@ -32,6 +28,7 @@ homeassistant/components/arcam_fmj/* @elupus
homeassistant/components/arduino/* @fabaff
homeassistant/components/arest/* @fabaff
homeassistant/components/asuswrt/* @kennedyshead
homeassistant/components/atome/* @baqs
homeassistant/components/aurora_abb_powerone/* @davet2001
homeassistant/components/auth/* @home-assistant/core
homeassistant/components/automatic/* @armills
Expand All @@ -44,6 +41,7 @@ homeassistant/components/azure_event_hub/* @eavanvalkenburg
homeassistant/components/bitcoin/* @fabaff
homeassistant/components/bizkaibus/* @UgaitzEtxebarria
homeassistant/components/blink/* @fronzbot
homeassistant/components/bmw_connected_drive/* @gerard33
homeassistant/components/braviatv/* @robbiet480
homeassistant/components/broadlink/* @danielhiversen
homeassistant/components/brunt/* @eavanvalkenburg
Expand Down Expand Up @@ -108,7 +106,6 @@ homeassistant/components/gntp/* @robbiet480
homeassistant/components/google_cloud/* @lufton
homeassistant/components/google_translate/* @awarecan
homeassistant/components/google_travel_time/* @robbiet480
homeassistant/components/googlehome/* @ludeeus
homeassistant/components/gpsd/* @fabaff
homeassistant/components/group/* @home-assistant/core
homeassistant/components/gtfs/* @robbiet480
Expand All @@ -123,6 +120,7 @@ homeassistant/components/hive/* @Rendili @KJonline
homeassistant/components/homeassistant/* @home-assistant/core
homeassistant/components/homekit_controller/* @Jc2k
homeassistant/components/homematic/* @pvizeli @danielperna84
homeassistant/components/homematicip_cloud/* @SukramJ
homeassistant/components/honeywell/* @zxdavb
homeassistant/components/html5/* @robbiet480
homeassistant/components/http/* @home-assistant/core
Expand All @@ -143,6 +141,7 @@ homeassistant/components/ipma/* @dgomes
homeassistant/components/iqvia/* @bachya
homeassistant/components/irish_rail_transport/* @ttroy50
homeassistant/components/jewish_calendar/* @tsvi
homeassistant/components/keba/* @dannerph
homeassistant/components/knx/* @Julius2342
homeassistant/components/kodi/* @armills
homeassistant/components/konnected/* @heythisisnate
Expand Down Expand Up @@ -172,6 +171,7 @@ homeassistant/components/meteoalarm/* @rolfberkenbosch
homeassistant/components/miflora/* @danielhiversen @ChristianKuehnel
homeassistant/components/mill/* @danielhiversen
homeassistant/components/min_max/* @fabaff
homeassistant/components/minio/* @tkislan
homeassistant/components/mobile_app/* @robbiet480
homeassistant/components/monoprice/* @etsinko
homeassistant/components/moon/* @fabaff
Expand All @@ -182,6 +182,7 @@ homeassistant/components/nello/* @pschmitt
homeassistant/components/ness_alarm/* @nickw444
homeassistant/components/nest/* @awarecan
homeassistant/components/netdata/* @fabaff
homeassistant/components/netgear_lte/* @amelchio
homeassistant/components/nextbus/* @vividboarder
homeassistant/components/nissan_leaf/* @filcole
homeassistant/components/nmbs/* @thibmaek
Expand All @@ -190,6 +191,7 @@ homeassistant/components/notify/* @home-assistant/core
homeassistant/components/notion/* @bachya
homeassistant/components/nsw_fuel_station/* @nickw444
homeassistant/components/nuki/* @pschmitt
homeassistant/components/nws/* @MatthewFlamm
homeassistant/components/ohmconnect/* @robbiet480
homeassistant/components/onboarding/* @home-assistant/core
homeassistant/components/opentherm_gw/* @mvn23
Expand Down
38 changes: 0 additions & 38 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions .devcontainer/Dockerfile → Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update \

WORKDIR /usr/src

# Setup hass-release
RUN git clone --depth 1 https://github.com/home-assistant/hass-release \
&& cd hass-release \
&& pip3 install -e .
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ stages:
- script: |
. venv/bin/activate
pytest --timeout=9 --durations=10 --junitxml=test-results.xml -qq -o console_output_style=count -p no:sugar tests
script/check_dirty
displayName: 'Run pytest for python $(python.container)'
condition: and(succeeded(), ne(variables['python.container'], variables['PythonMain']))
- script: |
Expand All @@ -122,6 +123,7 @@ stages:
. venv/bin/activate
pytest --timeout=9 --durations=10 --junitxml=test-results.xml --cov --cov-report=xml -qq -o console_output_style=count -p no:sugar tests
codecov --token $(codecovToken)
script/check_dirty
displayName: 'Run pytest for python $(python.container) / coverage'
condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain']))
- task: PublishTestResults@2
Expand Down
74 changes: 72 additions & 2 deletions azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trigger:
pr: none
variables:
- name: versionBuilder
value: '5.2'
value: '6.1'
- group: docker
- group: github
- group: twine
Expand Down Expand Up @@ -60,7 +60,7 @@ stages:
- script: |
export TWINE_USERNAME="$(twineUser)"
export TWINE_PASSWORD="$(twinePassword)"

twine upload dist/* --skip-existing
displayName: 'Upload pypi'
- job: 'ReleaseDocker'
Expand Down Expand Up @@ -150,3 +150,73 @@ stages:
git commit -am "Bump Home Assistant $version"
git push
displayName: 'Update version files'
- job: 'ReleaseDocker'
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
mkdir -p ~/.docker
echo '{ "experimental": "enabled" }' > .docker/config.json

sudo docker login -u $(dockerUser) -p $(dockerPassword)
displayName: 'Enable manifest / Docker login'
- script: |
set -e

function create_manifest() {
local tag_l=$1
local tag_r=$2

sudo docker --config .docker manifest create homeassistant/home-assistant:${tag_l} \
homeassistant/amd64-homeassistant:${tag_r} \
homeassistant/i386-homeassistant:${tag_r} \
homeassistant/armhf-homeassistant:${tag_r} \
homeassistant/armv7-homeassistant:${tag_r} \
homeassistant/aarch64-homeassistant:${tag_r}

sudo docker --config .docker manifest annotate homeassistant/home-assistant:${tag_l} \
homeassistant/amd64-homeassistant:${tag_r} \
--os linux --arch amd64

sudo docker --config .docker manifest annotate homeassistant/home-assistant:${tag_l} \
homeassistant/i386-homeassistant:${tag_r} \
--os linux --arch 386

sudo docker --config .docker manifest annotate homeassistant/home-assistant:${tag_l} \
homeassistant/armhf-homeassistant:${tag_r} \
--os linux --arch arm --variant=v6

sudo docker --config .docker manifest annotate homeassistant/home-assistant:${tag_l} \
homeassistant/armv7-homeassistant:${tag_r} \
--os linux --arch arm --variant=v7

sudo docker --config .docker manifest annotate homeassistant/home-assistant:${tag_l} \
homeassistant/aarch64-homeassistant:${tag_r} \
--os linux --arch arm64 --variant=v8

sudo docker --config .docker manifest push --purge homeassistant/home-assistant:${tag_l}
}

sudo docker pull homeassistant/amd64-homeassistant:$(Build.SourceBranchName)
sudo docker pull homeassistant/i386-homeassistant:$(Build.SourceBranchName)
sudo docker pull homeassistant/armhf-homeassistant:$(Build.SourceBranchName)
sudo docker pull homeassistant/armv7-homeassistant:$(Build.SourceBranchName)
sudo docker pull homeassistant/aarch64-homeassistant:$(Build.SourceBranchName)

# Create version tag
create_manifest "$(Build.SourceBranchName)" "$(Build.SourceBranchName)"

# Create general tags
if [[ "$version" =~ d ]]; then
create_manifest "dev" "$(Build.SourceBranchName)"
elif [[ "$version" =~ b ]]; then
create_manifest "beta" "$(Build.SourceBranchName)"
create_manifest "rc" "$(Build.SourceBranchName)"
else
create_manifest "stable" "$(Build.SourceBranchName)"
create_manifest "latest" "$(Build.SourceBranchName)"
create_manifest "beta" "$(Build.SourceBranchName)"
create_manifest "rc" "$(Build.SourceBranchName)"
fi

displayName: 'Create Meta-Image'
32 changes: 7 additions & 25 deletions homeassistant/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
from typing import List, Dict, Any, TYPE_CHECKING # noqa pylint: disable=unused-import

from homeassistant import monkey_patch
from homeassistant.const import (
__version__,
EVENT_HOMEASSISTANT_START,
REQUIRED_PYTHON_VER,
RESTART_EXIT_CODE,
)
from homeassistant.const import __version__, REQUIRED_PYTHON_VER, RESTART_EXIT_CODE

if TYPE_CHECKING:
from homeassistant import core
Expand Down Expand Up @@ -173,7 +168,7 @@ def get_arguments() -> argparse.Namespace:
parser.add_argument(
"--runner",
action="store_true",
help="On restart exit with code {}".format(RESTART_EXIT_CODE),
help=f"On restart exit with code {RESTART_EXIT_CODE}",
)
parser.add_argument(
"--script", nargs=argparse.REMAINDER, help="Run one of the embedded scripts"
Expand Down Expand Up @@ -245,7 +240,7 @@ def write_pid(pid_file: str) -> None:
with open(pid_file, "w") as file:
file.write(str(pid))
except IOError:
print("Fatal Error: Unable to write pid file {}".format(pid_file))
print(f"Fatal Error: Unable to write pid file {pid_file}")
sys.exit(1)


Expand Down Expand Up @@ -309,23 +304,10 @@ async def setup_and_run_hass(config_dir: str, args: argparse.Namespace) -> int:
log_no_color=args.log_no_color,
)

if args.open_ui:
# Imported here to avoid importing asyncio before monkey patch
from homeassistant.util.async_ import run_callback_threadsafe
if args.open_ui and hass.config.api is not None:
import webbrowser

def open_browser(_: Any) -> None:
"""Open the web interface in a browser."""
if hass.config.api is not None:
import webbrowser

webbrowser.open(hass.config.api.base_url)

run_callback_threadsafe(
hass.loop,
hass.bus.async_listen_once,
EVENT_HOMEASSISTANT_START,
open_browser,
)
hass.add_job(webbrowser.open, hass.config.api.base_url)

return await hass.async_run()

Expand All @@ -344,7 +326,7 @@ def try_to_restart() -> None:
thread.is_alive() and not thread.daemon for thread in threading.enumerate()
)
if nthreads > 1:
sys.stderr.write("Found {} non-daemonic threads.\n".format(nthreads))
sys.stderr.write(f"Found {nthreads} non-daemonic threads.\n")

# Somehow we sometimes seem to trigger an assertion in the python threading
# module. It seems we find threads that have no associated OS level thread
Expand Down
Loading