Commit graph

48 commits

Author SHA1 Message Date
Jesse Hills
d3c41bc31c
Add friendly name support for ESPHome ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-15 21:33:44 -10:00
Ville Skyttä
ae302bbec0
Make use of str.removeprefix and .removesuffix () 2023-01-13 12:19:38 +01:00
Paulus Schoutsen
06bc9c7b22
Automatically fetch the encryption key from the ESPHome dashboard ()
* Automatically fetch the encryption key from the ESPHome dashboard

* Also use encryption key during reauth

* Typo

* Clean up tests
2023-01-11 15:28:31 -05:00
Paulus Schoutsen
82ec769ec5
Handle ESPHome dashboard discovery () 2023-01-11 08:30:52 -05:00
Paulus Schoutsen
c6a0c7eccc
Tiny clean up of the ESPHome config flow ()
Clean up the ESPHome config flow
2022-12-31 12:20:48 -05:00
Paulus Schoutsen
d3df4dd3c1
ESPHome: Use MAC as unique ID ()
* ESPHome: Use MAC as unique ID

* Normalize incoming zeroconf/dhcp macs

* Update comment

* Test ESPHome without mac in zeroconf

* Use format_mac

* Remove unique ID index from DomainData
2022-12-10 22:26:42 -05:00
J. Nick Koston
4a56461d3c
Fix reauth with esphome when adding noise encryption ()
* Fix reauth with esphome when adding noise encryption

fixes 

* fix with unique id
2022-12-02 19:49:13 -05:00
J. Nick Koston
9a5bdaf87e
Ensure unique id is set for esphome when setup via user flow () 2022-09-01 14:10:20 -04:00
R. de Veen
3899c9e6d3
Links to Esphomelib.com is changed to esphome.io () 2022-06-30 20:27:31 +02:00
Jesse Hills
f311d53c60
ESPHome use dhcp responses to update connection host of known devices ()
* ESPHome use dhcp responses to update connection host of known devices

* Add test for dhcp

* Add another test to cover when there are no changes required
2022-06-30 10:07:03 -07:00
epenet
dc039f5218
Use standard argument name in async_step_reauth () 2022-06-28 17:12:32 +02:00
epenet
bd29b91867
Use Mapping for async_step_reauth (a-e) ()
* Adjust abode

* Adjust airvisual

* Adjust aladdin_connect

* Adjust ambee

* Adjust aussie-broadband

* Adjust brunt

* Adjust cloudflare

* Adjust deconz

* Adjust deluge

* Adjust devolo_home_control

* Adjust efergy

* Adjust esphome
2022-06-20 09:08:11 +02:00
epenet
416976dd39
Use dataclass properties in esphome discovery ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 11:03:08 +01:00
Jesse Hills
dd001cacfd
Fix missing name for ESPHome reauth dialog () 2021-11-29 10:06:56 +01:00
epenet
4f7e405a2c
Use zeroconf attributes in esphome ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 20:26:50 +01:00
epenet
b3ffc1e183
Adjust async_step_zeroconf signature for strict typing ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 18:05:45 +01:00
Otto Winter
df4e8721e9
ESPHome move ReconnectLogic to aioesphomeapi () 2021-10-13 10:04:23 -07:00
Otto Winter
a54854d129
ESPHome Noise Transport Encryption support () 2021-09-20 09:02:17 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) () 2021-07-30 01:20:03 +02:00
Milan Meulemans
348d7a5622
Remove incorrect use of ConfigType in config flows () 2021-07-27 12:33:17 +02:00
Otto Winter
4d16cda957
ESPHome enable static type checking () 2021-07-12 22:56:10 +02:00
Otto Winter
f772eab7b7
ESPHome delete store data when unloading entry () 2021-06-29 15:06:24 -07:00
Franck Nijhof
e652ff3a6a
Clean up connection classes in integrations D-G () 2021-04-30 21:02:21 -10:00
Marc Mueller
91df3fa904
Update typing 06 () 2021-03-17 23:49:01 +01:00
Franck Nijhof
bc1daf1802
None optional hass typing in FlowHandler ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
tkdrob
29d8b8a22f
Some code cleanups for ESPHome () 2021-02-11 10:19:39 +01:00
definitio
0a1d9abe79
Use common strings in esphome config flow () 2020-10-09 14:28:54 +02:00
J. Nick Koston
9b23d7c2fd
Use the shared Zeroconf instance in esphome () 2020-09-04 21:01:41 +02:00
Franck Nijhof
46cb9cff41
Fix ESPHome discovery for ignored config entries () 2020-06-21 00:39:08 +02:00
Franck Nijhof
3cc94f7d6a
ConfigFlow default discovery without unique ID () 2020-06-15 13:38:38 +02:00
Chris Talkington
ba7391528f
Add unique id to esphome config flow () 2020-04-30 16:24:47 -07:00
Ville Skyttä
03f7fe483b
Type hint improvements ()
* Complete components.remote type hints

* Define ConfigType only in helpers.typing
2020-02-16 13:47:55 +01:00
Paulus Schoutsen
e019280d94
Annotate more async functions correctly () 2020-02-14 10:00:22 -08:00
Quentame
8a413b152d Move esphome imports at top-level () 2019-11-25 18:00:58 -08:00
Ville Skyttä
761d7f21e9 Upgrade pylint ()
* Upgrade pylint to 2.4.2 and astroid to 2.3.1

https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2

* unnecessary-comprehension fixes

* invalid-name fixes

* self-assigning-variable fixes

* Re-enable not-an-iterable

* used-before-assignment fix

* invalid-overridden-method fixes

* undefined-variable __class__ workarounds

https://github.com/PyCQA/pylint/issues/3090

* no-member false positive disabling

* Remove some no longer needed disables

* using-constant-test fix

* Disable import-outside-toplevel for now

* Disable some apparent no-value-for-parameter false positives

* invalid-overridden-method false positive disables

https://github.com/PyCQA/pylint/issues/3150

* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
Ville Skyttä
33e1b44b3a
Use PEP 526 type annotations, add some type hints ()
* Add some more type hints to helpers.event

* Change most type comments to variable types

* Remove some superfluous type hints
2019-09-07 09:48:58 +03:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Otto Winter
e669e1e2bf
ESPHome config flow only connect when needed ()
* ESPHome config flow only connect when needed

* Lint
2019-06-18 17:41:21 +02:00
Otto Winter
05bb645263 Fix zeroconf migration messing up ESPHome discovery () 2019-06-17 09:19:39 -07:00
Otto Winter
5610541515 Fix ESPHome config flow with invalid config entry () 2019-05-31 11:27:27 +02:00
Otto Winter
1ce2d97d3d Fix ESPHome discovered when already exists ()
* Fix ESPHome discovered when already exists

* Update .coveragerc
2019-05-30 09:48:58 -07:00
Otto Winter
9438dd1cbd Use name in ESPHome discovery title ()
* Use name in ESPHome discovery title

* Add test

* Lint
2019-05-26 13:48:05 +02:00
Robert Svensson
085303c349 ESPHome component to use zeroconf discovery ()
* Move ESPHome component to use zeroconf discovery

* Remove esphome from discovery component
2019-05-23 08:55:08 +02:00
Otto Winter
29187795a8 Fix ESPHome nodes being auto-added without user confirmation () 2019-02-26 12:35:25 -08:00
Otto Winter
55f9db6992 Bump aioesphomeapi to 1.5.0 ()
* Bump aioesphomeapi to 1.5.0

* Update requirements_all.txt

* Fix editor line length setting
2019-02-11 21:57:17 +01:00
Otto Winter
68723730a7
Add ESPHome native API discovery ()
* ESPHome discovery

* Add note about netdisco

* 🔡

* Address comments

* Bump netdisco to 2.3.0

* Update requirements_all.txt
2019-01-05 16:00:07 +01:00
Otto Winter
c7700ad11c Fix some ESPHome race conditions ()
* Fix some ESPHome race conditions

* Remove debug

* Update requirements_all.txt

* 🚑 Fix IDE line length settings
2019-01-04 22:10:52 +01:00
Otto Winter
a08bab7b18 Add native ESPHome API component ()
* Create esphomelib component

* Update requirements

* Remove python 2 string literals

* MVP

* Remove config flow

* Remove config flow translations

* Use dispatcher more

* Use data classes

* Type Hints

* Cleanup on remove

* Use helper and cleanup

* Fix HA stop listener cleanup

* Add config flow

* Fix SyntaxError for Py3.5

* Update

* Lint

* Re-do tests

*  Rename to ESPHome

* Better error message for resolve errors

* Fix tests when aioesphomeapi not installed

* Refactor mock

* Update requirements

* Add strings.json

* 🍵 100% config flow  test coverage
2018-12-17 01:29:32 +01:00