Commit Graph

71 Commits (9b2107b71f8dc5eac6718c145c64acab342e5a06)

Author SHA1 Message Date
Otto Winter f772eab7b7
ESPHome delete store data when unloading entry (#52296) 2021-06-29 15:06:24 -07:00
Otto Winter b43d0877e7
ESPHome Migrate to dataclasses (#52305) 2021-06-29 19:53:57 +02:00
Otto Winter 3e1d32f4e0
ESPHome Climate add preset, custom preset, custom fan mode (#52133)
* ESPHome Climate add preset, custom preset, custom fan mode

* Fix copy paste error

* Bump aioesphomeapi to 3.0.0

* Bump aioesphomeapi to 3.0.1

* Persist api version to prevent exception for offline devices
2021-06-28 13:43:45 +02:00
Otto Winter 03ec7b3d0b
ESPHome rework EsphomeEnumMapper for safe enum mappings (#51975) 2021-06-21 21:22:38 -07:00
Michael b1138b1aab
Add constructor return type in integrations E-K (#50902) 2021-05-20 18:47:30 +03:00
Franck Nijhof a16629601a
Add support for tracking entity attributes in ESPHome (#50528) 2021-05-13 15:39:53 -07:00
Franck Nijhof 72f342aa5b
Upgrade aioesphomeapi to 2.7.0 (#50522) 2021-05-12 15:21:54 +02:00
Ville Skyttä 44a790ab47
Entity.device_info typing fixes (#49974) 2021-05-10 22:11:51 -07:00
Franck Nijhof 98ef1e1e82
Remove stale config schema from ESPHome integration (#50083) 2021-05-04 22:18:46 +02:00
J. Nick Koston a67b9eff17
Reduce config entry setup/unload boilerplate D-F (#49733) 2021-04-26 20:46:49 -10:00
Franck Nijhof 168b3c100c
Remove HomeAssistantType alias - Part 4 (#49515) 2021-04-21 12:18:42 +02:00
Guillermo Ruffino cf51e07953
Fix esphome registering invalid service name (#49398) 2021-04-19 08:31:43 +02:00
J. Nick Koston c1e788e665
Only listen for zeroconf when the esphome device cannot connect (#48645) 2021-04-03 17:11:32 -07:00
Franck Nijhof 52475c108f
Make integration setup optional (#48381) 2021-03-29 13:53:47 -07:00
Otto Winter 0193f16ae9
ESPHome trigger reconnect immediately when mDNS record received (#48129) 2021-03-20 14:49:03 -10:00
Marc Mueller 91df3fa904
Update typing 06 (#48039) 2021-03-17 23:49:01 +01:00
Guillermo Ruffino 02619ca2cd
Add service schema for ESPHome api services (#47426) 2021-03-17 22:50:21 +01:00
Anders Melchiorsen c8c394ef91
Increase ESPHome log level on first connection failure (#47547) 2021-03-07 11:36:28 +01:00
Anders Melchiorsen 79ebe930e3
Limit log spam by ESPHome (#47456) 2021-03-05 16:16:07 +01:00
Franck Nijhof 603191702f
Cleanup of possibily confusing comment in esphome (#46903) 2021-02-22 14:43:29 +01:00
tkdrob 29d8b8a22f
Some code cleanups for ESPHome (#46367) 2021-02-11 10:19:39 +01:00
Paulus Schoutsen 9e07910ab0
Mark entities as unavailable when they are removed but are still registered (#45528)
* Mark entities as unavailable when they are removed but are still registered

* Add sync_entity_lifecycle to collection helper

* Remove debug print

* Lint

* Fix tests

* Fix tests

* Update zha

* Update zone

* Fix tests

* Update hyperion

* Update rfxtrx

* Fix tests

* Pass force_remove=True from integrations

Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Jesse Hills f78b02b163
Do not try to connect to disabled ESPHome devices. (#45092) 2021-01-13 15:17:13 +01:00
Olivér Falvai dd4147fbaa
Log unique_id of device when ESPHome connection fails (#44152) 2020-12-12 10:44:45 -07:00
J. Nick Koston 9d0cd9c1b1
Convert most esphome state updates to callbacks (#43246) 2020-11-15 22:18:23 +01:00
Paulus Schoutsen b515480a98
Fix ESPHome scan tag device ID (#40132) 2020-09-16 13:17:05 +02:00
Jesse Hills 16e0ed9242
Use device name stored in device_info for tag scan in ESPHome (#40130) 2020-09-16 12:22:06 +02:00
Jesse Hills d650bcca3b
Allow ESPHome to trigger the HA tag scanned event (#40128) 2020-09-16 11:54:59 +02:00
J. Nick Koston 9b23d7c2fd
Use the shared Zeroconf instance in esphome (#38747) 2020-09-04 21:01:41 +02:00
Ville Skyttä 1bf2c4d976
Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
J. Nick Koston 5cd6370822
Switch async_track_state_change to the faster async_track_state_change_event part 3 (#37852)
async_track_state_change_event is faster than async_track_state_change
2020-07-14 09:40:01 -10:00
Mateusz Soszyński 663acfe89f
Add host names in esphome logs (#37587) 2020-07-07 19:15:45 +02:00
Paulus Schoutsen aaa1d06809
Directly call async_write_ha_state (#33508)
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
springstan 9801810552
Use f-strings in integrations starting with "B"-"E" (#32121)
* Use f-strings in integrations starting with B

* Use f-strings in integrations starting with C

* Use f-strings in integrations starting with D

* Use f-strings in integrations starting with E

* Fix pylint errors

* Fix pylint errors v2

* Fix tests

* Fix tests v2
2020-02-24 08:47:52 -08:00
Ville Skyttä e6388e186c
Remove unnecessary string literal concatenations (#30360) 2020-01-02 21:17:10 +02:00
Ville Skyttä d88ca0f5cb Lint exclusions (#28655)
* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Otto Winter 322d8c2dd5 Fix ESPHome stacktraces when removing entity and shutting down (#28185) 2019-10-24 13:36:47 -07:00
Otto Winter a79a9809f4 ESPHome Fix intermediary state published (#27638)
Fixes https://github.com/esphome/issues/issues/426
2019-10-14 16:02:39 +02:00
Ville Skyttä 33e1b44b3a
Use PEP 526 type annotations, add some type hints (#26464)
* 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
Franck Nijhof fa79ef1220 Use literal string interpolation in integrations E-G (f-strings) (#26379) 2019-09-03 17:10:56 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Otto Winter 024ce0e8eb
Add ESPHome event generation and user-defined service array support (#24595)
* Add ESPHome event generation and user-defined service array support

* Comments

* Lint
2019-06-18 17:43:11 +02:00
Otto Winter ee5540f351
ESPHome load platforms lazily (#24594) 2019-06-18 17:41:45 +02:00
Otto Winter 1ce2d97d3d Fix ESPHome discovered when already exists (#24187)
* Fix ESPHome discovered when already exists

* Update .coveragerc
2019-05-30 09:48:58 -07:00
Otto Winter 015c8811a5 Use global imports for ESPHome (#24158)
* Use global import for ESPHome

* Add aioesphomeapi to test requirements

aioesphomeapi is also shipped as a pure-python wheel, so this should not impact test install time
2019-05-29 13:33:49 +02:00
Otto Winter 0c90bfb936 Fix ESPHome setup errors in beta (#23242)
* Fix ESPHome setup errors in beta

* Update requirements_all.txt
2019-04-22 12:13:21 -07:00
Otto Winter 3186109172 Simplify esphome (#22868)
* Add ESPHome climate support

* Adjust line length

* Update .coveragerc

* Update climate.py

* Simplify esphome integration

* Undo change

* Update cover.py
2019-04-16 13:48:46 -07:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements (#23024)
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Otto Winter 72af4276b9
Add ESPHome climate support (#22859)
* Add ESPHome climate support

* Adjust line length

* Update .coveragerc

* Update climate.py

* Rename
2019-04-10 22:13:13 +02:00
Otto Winter 5727beed8e
Add ESPHome Cover position/tilt support (#22858)
## Description:

Add ESPHome cover position and tilt support.

The aioesphomeapi also received a small refactor for these changes and those are part of this PR (constants were refactored into enums and optimistic was renamed to assumed_state). If possible, I'd like to include those in this PR because:

 1. It's mostly just very simple changes
 2. Because of the new position change the dev branch would be in a non-working state for a while until the split PR is merged (unless I write some temporary glue logic, but I'd prefer to avoid that)

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

If the code communicates with devices, web services, or third-party tools:
  - [x] [_The manifest file_][manifest-docs] has all fields filled out correctly ([example][ex-manifest]).
  - [x] New dependencies have been added to `requirements` in the manifest ([example][ex-requir]).
  - [x] New or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.

[ex-manifest]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mobile_app/manifest.json
[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mobile_app/manifest.json#L5
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
[manifest-docs]: https://developers.home-assistant.io/docs/en/development_checklist.html#_the-manifest-file_
2019-04-08 15:44:24 +02:00