Michael
844ccf461f
Remove unnecessary config schema definitions ( #123197 )
2024-08-05 17:44:14 +02:00
J. Nick Koston
8d0d8fd006
Convert powerwall to use entry.runtime_data ( #121643 )
2024-07-10 08:20:29 +02:00
Sid
0200d1aa66
Unignore Ruff UP006, UP007 ( #115533 )
2024-04-14 00:26:58 -05:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] ( #112702 )
2024-03-08 15:04:07 +01:00
J. Nick Koston
1bc0263ea4
Revert powerwall back to awaiting each api call ( #110947 )
...
We converted these to run as tasks in the hope that it would be faster,
but since the cost of establishing another connection and the task
overhead exceeded the savings, it makes sense to await them all in
series.
2024-02-19 20:13:49 +01:00
Marc Mueller
438d3b01b9
Use builtin TimeoutError [o-s] ( #109682 )
2024-02-05 12:14:37 +01:00
Josh Pettersen
b629ad9c3d
Add individual battery banks as devices ( #108339 )
2024-01-30 19:03:01 -10:00
Josh Pettersen
b6126e7821
Convert gather calls into TaskGroups ( #109010 )
2024-01-30 12:38:45 -10:00
J. Nick Koston
9033f1f3e8
Break long lines in powerwall integration ( #108002 )
2024-01-14 04:22:17 +01:00
J. Nick Koston
e7c25d1c36
Migrate powerwall unique ids to use the gateway din ( #107509 )
2024-01-13 16:17:37 -10:00
bubonicbob
c74bef265a
Update powerwall for tesla_powerwall 0.5.0 which is async ( #107164 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-10 11:21:53 -10:00
Marc Mueller
5014e2f0c7
Fix powerwall typing ( #104875 )
2023-12-01 05:42:50 -10:00
J. Nick Koston
44a3885986
Disable always_update in powerwall coordinator ( #97416 )
2023-07-28 12:41:05 -05:00
Franck Nijhof
3d557b5583
Collection of code styling tweaks ( #87381 )
2023-02-04 12:52:26 -05:00
Dan Simpson
66e21d7701
Add Powerwall off grid switch ( #86357 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-23 15:03:15 -10:00
J. Nick Koston
a1d9d7116c
Prevent powerwall from switching addresses if its online ( #82410 )
...
* Prevent powerwall from switching addresses if its online
If the wifi interface was discovered we would switch the
ip address in the entry to the wifi ip even if it was
connected via ethernet
* cover
* more cover
2022-11-20 10:38:30 -05:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards ( #73806 )
2022-07-09 17:27:42 +02:00
jrester
ad5dbae425
Fix reauthentication for powerwall integration ( #72174 )
2022-05-20 14:53:43 -05:00
J. Nick Koston
b629b3d99a
Ensure powerwall retries setup when api returns too many requests ( #70143 )
2022-04-16 12:12:16 +02:00
Matt Zimmerman
8c00fde27d
[powerwall] Skip backup reserve sensor if data is unavailable ( #69637 )
2022-04-07 20:34:00 -07:00
Matt Zimmerman
d077c3b8d1
Add sensor to expose Powerwall backup reserve percentage ( #66393 )
2022-02-28 09:31:34 -10:00
J. Nick Koston
e1989e2858
Enable strict typing for powerwall ( #65577 )
2022-02-23 12:15:31 +01:00
J. Nick Koston
3d8d507ed9
Migrate powerwall from using ip address as unique id ( #65257 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-03 18:39:57 +01:00
J. Nick Koston
385f1f3dad
Fix powerwall login retry when hitting rate limit ( #65245 )
2022-01-30 22:09:56 -06:00
Erik Montnemery
a672dc3437
Import persistent notification (part 4) ( #63901 )
2022-01-11 16:57:40 +01:00
Franck Nijhof
eb5a321a9f
Mark removed config schemas as removed ( #61014 )
2021-12-21 12:46:10 +01:00
Marc Mueller
79cd281c48
Use platform enum (5) [P-R] ( #60943 )
2021-12-04 13:19:49 +01:00
some-guy-in-oz
b2d67f8d19
Add grid services active sensor to telsa powerwall integration ( #56317 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-10-22 14:25:25 -10:00
J. Nick Koston
56d6173d70
Recreate the powerwall session/object when attempting relogin ( #56935 )
2021-10-07 20:15:29 -07:00
Tomasz
e9f6bc7364
Add missing return type to async_unload_entry and async_setup_entry ( #57115 )
2021-10-06 10:48:11 +02:00
J. Nick Koston
c53e7bc8c2
Only declare powerwall login failure after 5 attempts ( #53635 )
2021-07-28 21:09:08 +02:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries ( #51166 )
2021-05-27 17:39:06 +02:00
Barry Quiel
c079803fcb
Powerwall add Current attribute ( #50550 )
2021-05-13 11:12:48 -05:00
J. Nick Koston
3f3f77c6e6
Reduce config entry setup/unload boilerplate N-P ( #49777 )
2021-04-27 20:42:21 +02:00
Franck Nijhof
969c147b77
Clean up superfluous integration setup - part 4 ( #49295 )
...
* Clean up superfluous integration setup - part 4
* Adjust tests
2021-04-16 17:46:49 +02:00
J. Nick Koston
4cd7f9bd8b
Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth ( #48962 )
2021-04-09 19:41:29 -10:00
J. Nick Koston
6cf57da89f
Use SOURCE_REAUTH constant for starting reauth flows ( #48553 )
2021-03-31 19:48:32 +02:00
J. Nick Koston
a851bff95a
Create async_config_entry_first_refresh to reduce coordinator boilerplate ( #48451 )
2021-03-29 12:51:39 -10:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
J. Nick Koston
884df40951
Update powerwall for new authentication requirements ( #46254 )
...
Co-authored-by: badguy99 <61918526+badguy99@users.noreply.github.com>
2021-02-10 20:50:38 +01:00
J. Nick Koston
38d4af1a6e
Remove YAML support from powerwall ( #45381 )
2021-01-21 21:59:33 -05:00
jrester
734972f876
Update tesla_powerwall to 0.3.3 ( #41482 )
2020-10-08 08:26:44 -05:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
44552937b6
Fix missing space in powerwall notification message ( #36603 )
2020-06-10 11:29:56 +02:00
J. Nick Koston
208fa84a27
Update excess powerwall logging to be debug ( #34994 )
2020-04-30 20:40:31 -04:00
jrester
4b998ea6af
Improve error handling for Powerwall ( #34580 )
...
* Improve error handling
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/config_flow.py
modified: homeassistant/components/powerwall/const.py
modified: homeassistant/components/powerwall/strings.json
modified: homeassistant/components/powerwall/translations/en.json
* Change exception name
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/config_flow.py
* Add test
* Rename PowerwallError to POWERWALL_ERROR
* Modify handling of APIChangedErrors
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/const.py
2020-04-26 19:14:53 -05:00
jrester
dbd1ca45c4
Update tesla-powerwall to version 0.2.8 ( #34545 )
...
* Update tesla-powerwall to version 0.2.7
* Update tesla-powerwall to version 0.2.8
2020-04-22 16:10:06 -05:00
jrester
3776a06281
Use serial numbers for unique_id of powerwall devices ( #34351 )
...
* Update tesla-powerwall to version 0.2.5
* Create unique_id from serial numbers of powerwalls
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/binary_sensor.py
modified: homeassistant/components/powerwall/const.py
modified: homeassistant/components/powerwall/entity.py
modified: homeassistant/components/powerwall/sensor.py
modified: tests/components/powerwall/mocks.py
modified: tests/components/powerwall/test_sensor.py
* Fix pylint error
modified: homeassistant/components/powerwall/__init__.py
2020-04-17 16:21:14 -05:00
jrester
6924192523
Use updated powerwall client API library ( #34139 )
...
* Use updated powerwall client API library
* Increase instant_power precision to 3
* Add @jrester as code owner for powerwall
2020-04-13 21:59:50 +02:00