-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Add support for multiple N26 accounts #24345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 24 commits
Commits
Show all changes
620 commits
Select commit
Hold shift + click to select a range
ea9fba0
Bump pysmartthings (#24659)
andrewsayre 428a823
Fix AttributeError: 'NoneType' object has no attribute 'group' with s…
foreign-sub 8f0dcd0
braviatv, nmap_tracker: use getmac for getting MAC addresses (#24628)
scop 1d09ea2
Fix downloader_download_failed event not firing for HTTP response err…
sfjes ffbb782
Update azure-pipelines-wheels.yml for Azure Pipelines
pvizeli 7f98d7d
Multiple devices support for opentherm_gw (#22932)
mvn23 b0c83ed
Update azure-pipelines-wheels.yml for Azure Pipelines
pvizeli 2f31b73
Vlc telnet (#24290)
rodripf ce84868
Clean up Google Config (#24663)
balloob 25a9ac6
Prefere binary with wheels (#24669)
pvizeli 8652b80
Updated frontend to 20190620.0
balloob ba84d7f
Updated frontend to 20190620.0
balloob 612fd02
Vlc telnet (#24290)
rodripf f4cc860
Bump ZHA dependencies. (#24637)
Adminiuga 13eade5
Upgrade blinkpy==0.14.1 for startup bugfix (#24656)
fronzbot fb0b40e
Add device class support for Ambient PWS sensors (#24677)
bachya 229bc3a
Bumped version to 0.95.0b1
balloob 2d20ce1
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli 72ac0b7
Improve autodiscovered yeelights model detection (#24671)
zewelor cc2337c
Allow extra js modules to be included in frontend (#24675)
thomasloven 52122af
Add RainMachine device classes where appropriate (#24682)
bachya 4cd2272
Change Ambient solar radiation units to lx (#24690)
bachya 334292a
Upgrade to async_upnp_client==0.14.10 and increase search timeout (#2…
StevenLooman cd83c25
Upgrade mypy to 0.710 (#24666)
scop 72552ea
Template: Expand method to expand groups, and closest as filter (#23691)
Swamp-Ig f4c42ac
Add aml_thermal label (#24665)
jmw6773 0d7a5ba
Corrected number of default LCN segment coupler scan tryouts (#24678)
alengwenus 0700770
Fix time expression parsing (#24696)
amelchio 571c9db
Upgrade discord.py to 1.2.2 (#24695)
fabaff 7ce6859
Upgrade youtube_dl to 2019.06.08 (#24692)
fabaff c7c7fda
ZHA fix device type mappings (#24699)
dmulcahey 89f7e44
Upgrade Sphinx to 2.1.2 (#24693)
fabaff 827ab5d
Bump version pyatmo to 2.0.1 (#24703)
cgtobi 854fac6
Solax update 0.1.0 (#24708)
squishykid 031410d
Fix PS4 entities with shared host not updating and latency with multi…
ktnrg45 7f5720d
Update ZHA dependencies (#24718)
dmulcahey 4219f6c
Update owner stream integration
balloob 53e9dbe
Extend websocket method usage to port 8002 in Samsung TV media player…
2sheds 7713364
Add initial support for remote dev container (#24681)
pvizeli 8b6cc11
Expose ports 8123, 8300 and 51827 in Dockerfile (#24389)
e66a7ec
Bump pyatmo to v2.1.0 (#24724)
cgtobi c295e1d
Add Trafikverket train component (#23470)
endor-force 0f175b0
Add show_as_state options to Life360 (#24725)
pnbruckner 974db4e
Updated frontend to 20190624.0
balloob 33e5262
Updated frontend to 20190624.0
balloob 6e1b54f
Update translations
balloob 0a62608
Bump version pyatmo to 2.0.1 (#24703)
cgtobi 4fb7a27
Update ZHA dependencies (#24718)
dmulcahey f85898e
Bumped version to 0.95.0b2
balloob ce650bf
Add 'unique_id' Property to Inverter Sensors (#24707)
squishykid b7800b4
Save cached logi_circle tokens in config folder (#24726)
evanjd 93f4576
Remove device and entity registry entries when removing a ZHA device …
dmulcahey fdf4ca9
Add support for sensor state STATE_UNAVAILABLE (#24641)
cnrd dfc5483
Update ZHA dependencies. (#24736)
Adminiuga 7f520eb
AdGuard to update entry (#24737)
balloob f6dab61
Update pysonos to 0.0.17 (#24740)
amelchio 0df67a9
Update ZHA dependencies. (#24736)
Adminiuga 26ff56c
Update pysonos to 0.0.17 (#24740)
amelchio 8f37d8b
Bumped version to 0.95.0b3
balloob cb44f08
Fix locative device update (#24744)
MartinHjelmare 9bb38f2
Improve Alexa error handling (#24745)
balloob 8ee6543
Updated frontend to 20190624.1
balloob 80181e4
Updated frontend to 20190624.1
balloob cf9eea8
Clean up Google Config (#24663)
balloob 251c3be
Improve Alexa error handling (#24745)
balloob f260efa
Bumped version to 0.95.0b4
balloob dbf80c4
Add integration for Vallox Ventilation Units (#24660)
andre-richter 64dd7e8
Handle timeouts gracefully (#24752)
cgtobi 039f0fc
Ignore duplicate tradfri discovery (#24759)
balloob e9f932c
Vallox: Fix missing hass member (#24753)
andre-richter aa5ea9b
Remove obsolete comments in Dockerfile (#24748)
Emilv2 48dfed2
fix an error in the description (#24735)
alain57 793b047
Return correct name for met.no (#24763)
Danielhiversen 7f41889
Update Waze route dependency to 0.10 (#24754)
johntdyer de1461f
Add support for IPP Printers to the CUPS integration (#24756)
Matte23 3e68be3
Enhancement/zha model manuf (#24771)
Adminiuga dfa1058
Updated frontend to 20190626.0
balloob 4243bd1
Updated frontend to 20190626.0
balloob 6d4c340
Bump pyatmo to v2.1.0 (#24724)
cgtobi 8145daf
Bumped version to 0.95.0
balloob fb565fe
Entity to handle updates via events (#24733)
balloob cda10aa
Upgrade vallox to async client API (#24774)
andre-richter 954e1f5
Fix life360 exception when no location provided (#24777)
pnbruckner bed03fb
Pubnub to 1.0.8 (#24781)
132a615
Upgrade pytest to 4.6.3 (#24782)
scop add808f
Catch uncaught Alexa error (#24785)
balloob 8a556d0
Pubnub to 1.0.8 (#24781)
2268e4d
Bumped version to 0.95.1
balloob 581b319
Add time delta option when searching for deutsche_bahn connections (#…
h3ndrik 85d0d2b
Update azure-pipelines-release.yml for Azure Pipelines (#24800)
pvizeli e16fefd
Make sure entity config is never none (#24801)
balloob 5d87f5e
Bump ZHA quirks module (#24802)
dmulcahey cbe1ed3
Zestimate fix for issue #23837 (#23838)
dreed47 e5713d7
Fix another Life360 bug (#24805)
pnbruckner 84dd9c6
Use climate device's target temp step value (#24804)
andersonshatch 048370a
Use step from tado rather than assuming 0.1 (#24807)
andersonshatch 180fe14
Updated frontend to 20190627.0
balloob 0563c9d
Changed default encoding to mp3 (#24808)
GrandNewbien ed64731
Fix netatmo weatherstation setup error (#24788)
cgtobi 4f175e7
Add developer tools panel (#24812)
balloob 9d4182f
Fix calling empty script turn off (#24827)
balloob 7b8c101
Bump ZHA quirks module (#24802)
dmulcahey 6a0529c
Bumped version to 0.95.2
balloob f8a07ac
Add template vacuum support (#22904)
luukd f75d79b
Full speed azure
pvizeli 953cfba
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli f441327
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli e6b18b1
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli d919150
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli f8eb681
Fix vacuum tests
balloob ab5571c
Update azure-pipelines-ci.yml for Azure Pipelines
pvizeli a309a22
Make sure alert is set up after notify (#24829)
balloob ffe99a2
Remove temperature attribute from SimpliSafe alarm control panel (#24…
bachya 63dd8ae
Alexa sync state report (#24835)
balloob c70c15d
Bumped version to 0.95.3
balloob e25b87c
Fronius (solar energy and inverter) component (#22316)
nielstron 0bdf3d0
Guard for None entity config (#24838)
balloob 4602f96
Bumped version to 0.95.4
balloob 301cb0d
Add template support to template trigger's for option (#24810)
pnbruckner 175acb9
Upgrade sisyphus-control to 2.2 (#24837)
jkeljo ad11b78
Fix yeelight color temp getter (#24830)
zewelor cfad426
Upgrade luftdaten to 0.6.1 (#24842)
fabaff b220771
Upgrade sqlalchemy to 1.3.5 (#24844)
fabaff e17bb54
Upgrade numpy to 1.16.4 (#24845)
fabaff 8d462de
Upgrade certifi to >= 2019.6.16 (#24846)
fabaff 97f30b3
Upgrade pyyaml to 5.1.1 (#24847)
fabaff 45b5c25
Upgrade jinja2 to >=2.10.1 (#24851)
fabaff 7795c81
Upgrade psutil to 5.6.3 (#24854)
fabaff 4c9ff44
Upgrade cryptography to 2.7 (#24852)
fabaff df9cf54
Fix mysensors icon name (#24871)
zewelor 4b3ff33
Update praw to 6.3.1 (#23737)
fabaff bee31b5
Hungarian is also supported in Google Cloud TTS (#24861)
realthk 6890452
Upgrade youtube_dl to 2019.06.27 (#24875)
fabaff e66cfba
Velbus: autodiscover covers (#24877)
cereal2nd 4d99fb1
Upgrade importlib-metadata to 0.18 (#24848)
fabaff 8ad61d2
Upgrade bcrypt to 3.1.7 (#24850)
fabaff 231258e
Fix traceback during ZHA device removal (#24882)
dmulcahey dbc0db2
Move SmartThings imports to top (#24878)
andrewsayre c52bdca
Update translations
balloob 7cfd918
Updated frontend to 20190630.0
balloob 5df01f7
Bump androidtv to 0.0.17 (#24886)
JeffLIrion f1acecc
Upgrade pytest to 5.0.0 (#24885)
Danielhiversen 4919c73
Tweak geniushub battery icons according to device state (#24798)
zxdavb 99e287b
Support mqtt discovery topic prefix with slashes (#24840)
cybe 77c2605
Update tts.py (#24892)
kevank 44bb480
go back to signals and no hard entity references (#24894)
dmulcahey df034ee
Update IDs for rename node/value (#24646)
Swamp-Ig c13d45a
Add git editor / app port
pvizeli e584ab2
Bump life360 package to 4.0.1 (#24905)
pnbruckner 518ed2b
Update devcontainer.json
pvizeli c5f3d6f
Update devcontainer.json
pvizeli b41debc
Update devcontainer.json
pvizeli 4362dd3
Stability improvements for Sonos availability (#24880)
amelchio 6fdbd33
Fix 'same state' monitoring in numeric_state trigger (#24910)
pnbruckner 5cfa2e6
Fix 'same state' monitoring in state trigger (#24904)
pnbruckner c5e2d08
Add missing trigger.for variable to template trigger (#24893)
pnbruckner 50a373c
Add ability to send attachments in pushover notifications (#24806)
kreegahbundolo 2d197bc
Updated frontend to 20190702.0
balloob e1e21b8
Fix home coach discovery (#24902)
cgtobi 63f3a62
New languages that looks like supported by Google but not documented:…
lufton ec7f1c5
Remove ZHA device entity (#24909)
dmulcahey 043717e
Bump androidtv to 0.0.18 (#24927)
JeffLIrion 9f1f187
Update pysonos to 0.0.19 (#24930)
amelchio eb853fe
Add support for Yale YRL256 lock (#24932)
ctso 210f40e
Fix exclusion of routes with excl_filter (#24928)
gadgetchnnel 14f1ff2
New scanner device tracker and ZHA device tracker support (#24584)
dmulcahey 1b1f579
Allow updating of via_device in device registry (#24921)
bachya 124a00c
Update pyHik library to 0.2.3 (#24957)
mezz64 34b208c
Implement ADR0003 for Netatmo sensor (#24944)
cgtobi a9c065e
Fix monitoring of trays in syncthru component (#24961)
nielstron 24c3543
Batch of Component(s) -> Integration(s) (#24972)
frenck 7541a82
Add sonos.play_queue service (#24974)
apeeters ac69883
Fix errors if rest source becomes unavailable (#24986)
slackr31337 5ee45a9
Switched from tuyapy to tuyaha as 1st one is not maintained (#24821)
PaulAnnekov 1e3cb84
Adds Lock Threads Probot (#24984)
frenck 7a58e10
Adds Stale Probot for issues (#24985)
frenck d86d395
Upgrade mypy to 0.711, drop no longer needed workarounds (#24998)
scop 4344b41
Changes as per code review of #24646 (#24917)
Swamp-Ig 0102beb
Sleepiq single sleeper crash (#24941)
qypea 406732b
Add support for aurora ABB Powerone solar photovoltaic inverter (#24809)
davet2001 fec4e62
Test dependency updates (#25004)
scop 0da00a5
upgrade switchmate to latest lib (#25006)
Danielhiversen 606bf10
Upgrade hdate==0.8.8 (#25008)
tsvi 7f683d2
Upgrade insteonplm to 0.16.0 and add INSTEON scene triggering (#24765)
teharris1 ff81243
Install requirements for integrations in packages before importing th…
ludeeus fd6bb99
Added missing yeelight models mapping (#24963)
cadavre 6aae371
Correct socket use in cert_expiry platform (#25011)
elupus b79b031
Climate 1.0 (#23899)
pvizeli 4ad25d4
Implement Twilio SMS notify MediaUrl support (#24971)
Chris-Johnston baafb5d
Enphase envoy individual inverter production (#24445)
jesserizzo cc3fe9c
Add support for arcam fmj receivers (#24621)
elupus 1062a0c
Sensibo, add HVAC_MODE_OFF (#25016)
Danielhiversen 1a8b11e
Fix ecobee flaky test (#25019)
balloob 01d3e33
Fix mimetypes on borked Windows machines (#25018)
balloob 167defb
Add datetime option to input_datetime.set_datetime service (#24975)
pnbruckner c7d5067
Add template support to numeric_state trigger's for option (#24955)
pnbruckner 0bcb676
Add template support to state trigger's for option (#24912)
pnbruckner 5ec52e1
Fix Nest sensor (#25023)
balloob c84052a
ambiclimate hvac_modes (#25015)
Danielhiversen 7cccd3d
homematic add off support for climate (#25017)
pvizeli fd5ecff
Support config flow on custom components (#24946)
elupus 373976c
Improve SmartThings test mocking (#25028)
andrewsayre 8d00788
Toon fixes for Climate 1.0 (#25027)
frenck 061081f
Add hvac fan state (#25030)
andrewsayre a46e5b6
Add support for Notion Home Monitoring (#24634)
bachya b5b4610
Fix Netatmo climate presets (#25029)
cgtobi 826cf9b
Add missing support for jewish_calendar.omer_count sensor (#24958)
arigilder e4e8a7c
Centralizes Toon data, reducing API calls (#23988)
frenck ddf83a7
Update build pipeline
pvizeli 9218634
Upgrade youtube_dl to 2019.07.02 (#24990)
fabaff 6572133
updated geojson_client library to version 0.4 (#25039)
exxamalte 180b744
Improve toon climate (#25040)
frenck c532b93
Fix Netatmo rain gauge precision (#25036)
cgtobi 07f6d59
Bump pyvera to 0.3.2, null/missing value protection (#25041)
jlrgraham 96b3033
Add radiotherm CT80 current humidity support (#25024)
zombielinux 9e810e9
Add config flow support to Geolocation (#25046)
bachya cc08ce4
Update tuyaha to 0.0.2 to catch API exceptions (#25050)
PaulAnnekov 7b2d9c4
Added marker sensor to CUPS integration (#25037)
Matte23 84b343c
Remove myself as codeowner (#25043)
cdce8p bb02e24
[climate] Bugfix honeywell misleading error message (#25048)
zxdavb 6fe93d2
Add Sonos debug logging (#25063)
amelchio 7b30f40
Updated frontend to 20190710.0
balloob 2f9b2df
Update translations
balloob 59c01df
Avoid flooding steam API (#23941)
Swamp-Ig 2321b14
Add check_config helper (#24557)
kellerza e016f45
bump zha-quirks version (#25059)
dmulcahey 9f41011
Fix broken test in Python 3.7 (#25067)
balloob acdcfc4
Fix for Sonos debug logging (#25064)
amelchio f6114c7
Bump up ZHA dependencies. (#25062)
Adminiuga a5aa7ed
Add support for World Wide Lightning Location Network (#25001)
bachya 39a1fa2
SMA catch error (#25045)
kellerza 6856ac4
Change phrases in the logbook component for persons and binary_sensor…
Martijn02 a67182a
Make sure volume level is valid when incrementing/decrementing (#25061)
JeffLIrion d777884
Complete OPERATION_MODES (#25069)
monte-monte 25c175f
Add websocket API command for Z-Wave network status (#25066)
cgarwood a028055
Correctly store removed entities for restore state (#25073)
balloob c782ae6
Restore automation last_triggered as datetime & fix test (#24951)
pnbruckner 3163630
pylint
balloob 2a3fb76
Version bump to 0.97.0dev0
balloob c6a0f3c
Rewrite calendar component (#24950)
MartinHjelmare 4f3f6dd
Change unique_id formula for Notion entities (#25076)
bachya 2d51d72
Do not reverse open/close calls (#24879)
balloob 5962976
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli c9134dc
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli c08d8f4
Update azure-pipelines-release.yml for Azure Pipelines
pvizeli e58fb96
Guard module being None (#25077)
balloob a274c32
Remove monitored conditions from syncthru (#25052)
nielstron aa59a7c
Update azure-pipelines-wheels.yml for Azure Pipelines
pvizeli 42afdb2
Add climate related services to Homematic IP Cloud (#25079)
SukramJ a1f7500
Fix powercontrol media player alexa (#25080)
pvizeli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,15 +30,20 @@ | |
| def setup_platform( | ||
| hass, config, add_entities, discovery_info=None): | ||
| """Set up the N26 sensor platform.""" | ||
| api_data = hass.data[DOMAIN][DATA] | ||
| api_list = hass.data[DOMAIN][DATA] | ||
|
|
||
| sensor_entities = [N26Account(api_data)] | ||
| if api_list is None: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| return | ||
|
|
||
| for card in api_data.cards: | ||
| sensor_entities.append(N26Card(api_data, card)) | ||
| sensor_entities = [] | ||
| for api_data in api_list: | ||
| sensor_entities.append(N26Account(api_data)) | ||
|
|
||
| for space in api_data.spaces["spaces"]: | ||
| sensor_entities.append(N26Space(api_data, space)) | ||
| for card in api_data.cards: | ||
| sensor_entities.append(N26Card(api_data, card)) | ||
|
|
||
| for space in api_data.spaces["spaces"]: | ||
| sensor_entities.append(N26Space(api_data, space)) | ||
|
|
||
| add_entities(sensor_entities) | ||
|
|
||
|
|
@@ -204,7 +209,8 @@ def update(self) -> None: | |
| @property | ||
| def unique_id(self): | ||
| """Return the unique ID of the entity.""" | ||
| return "space_{}".format(self._space["name"].lower()) | ||
| return "space_{}_{}".format(self._data.balance["iban"][-4:], | ||
| self._space["name"].lower()) | ||
|
|
||
| @property | ||
| def name(self) -> str: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,11 +14,15 @@ | |
| def setup_platform( | ||
| hass, config, add_entities, discovery_info=None): | ||
| """Set up the N26 switch platform.""" | ||
| api_data = hass.data[DOMAIN][DATA] | ||
| api_list = hass.data[DOMAIN][DATA] | ||
|
|
||
| if api_list is None: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. |
||
| return | ||
|
|
||
| switch_entities = [] | ||
| for card in api_data.cards: | ||
| switch_entities.append(N26CardSwitch(api_data, card)) | ||
| for api_data in api_list: | ||
| for card in api_data.cards: | ||
| switch_entities.append(N26CardSwitch(api_data, card)) | ||
|
|
||
| add_entities(switch_entities) | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a guard clause here that checks if
discovery_infois None and return if so.