J. Nick Koston
3b7095c63b
Fix esphome not removing entities when static info changes ( #95202 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-25 21:31:31 -05:00
J. Nick Koston
57a910a144
Relocate esphome entity code into its own module ( #95092 )
2023-06-24 23:12:36 -04:00
J. Nick Koston
1cb62d776e
Migrate esphome cover platform to use _on_static_info_update ( #94959 )
2023-06-21 14:54:56 +02:00
Alexander Momchilov
abe60375b3
Disable esphome stopping a cover if the cover doesn't support stopping ( #80104 )
...
* Make "CoverEntityFeature.STOP" conditional
* Check APIVersion before checking false by default flag
* sort
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-28 16:43:47 +02:00
epenet
bd6a4d10ea
Use try_parse_enum in integrations ( #87085 )
2023-02-02 12:34:01 +01:00
Franck Nijhof
04793978d3
Use CoverDeviceClass in ESPHome ( #83395 )
2022-12-06 13:29:58 +01:00
epenet
17573196c8
Adjust type hints for CoverEntityFeature ( #82238 )
2022-11-17 08:39:44 +01:00
Marc Mueller
e8156adb13
Update mypy to 0.981 ( #79115 )
2022-09-26 16:10:06 -04:00
Marc Mueller
79bdc02829
Improve esphome state property decorator typing ( #77152 )
2022-08-26 10:52:05 +02:00
epenet
38759bb98b
Adjust tilt_position method in esphome cover ( #74041 )
2022-06-28 11:08:31 +02:00
epenet
10dc38e0ec
Adjust CoverEntity property type hints in components ( #73943 )
...
* Adjust CoverEntity property type hints in components
* Revert changes to rflink
* Revert changes to wilight
2022-06-25 11:59:56 +02:00
epenet
dae2cf2827
Use EntityFeature enum in esphome ( #69386 )
2022-04-06 11:52:59 +02:00
Franck Nijhof
b996f624db
Ensure ESPHome device classes are valid ( #60594 )
2021-11-30 09:44:39 +01:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 ( #52972 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Otto Winter
4d16cda957
ESPHome enable static type checking ( #52348 )
2021-07-12 22:56:10 +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
Franck Nijhof
168b3c100c
Remove HomeAssistantType alias - Part 4 ( #49515 )
2021-04-21 12:18:42 +02:00
Marc Mueller
91df3fa904
Update typing 06 ( #48039 )
2021-03-17 23:49:01 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity ( #34595 )
2020-04-25 18:07:15 +02:00
Quentame
8a413b152d
Move esphome imports at top-level ( #29064 )
2019-11-25 18:00:58 -08:00
Ville Skyttä
761d7f21e9
Upgrade pylint ( #27279 )
...
* 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
David K
4f55235aa2
Return esphome cover position as Integer ( #27039 )
...
cover position is specified as integer 0-100, we should not return
float here.
fixes #25738
2019-09-29 12:06:51 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -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
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
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
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Otto Winter
f225570980
Move ESPHome Source Files ( #20092 )
...
* Move ESPHome source files
* Update .coveragerc
* Update CODEOWNERS
2019-01-14 09:00:48 -07:00