Commit Graph

89 Commits (9f586ea547ffad5ce222650b3b895df2cca22e32)

Author SHA1 Message Date
epenet 88feb8a7ad
Fix ADS platform schema (#131701) 2024-11-27 14:47:17 +01:00
Joost Lekkerkerker 11f00895f7
Add legacy to integrations that have not moved to the UI (#131171) 2024-11-22 19:33:50 +01:00
Adam Pasztor d2289fa542
Add select platform to ADS integration (#125892)
* Add ADS Select integration

* fix: review feedback.
2024-09-13 14:05:37 +02:00
Adam Pasztor 834a1ed608
Add codeowner to ADS integration. (#125893) 2024-09-13 11:20:16 +02:00
epenet 6d17ad4da6
Move ADS supported types to a StrEnum (#125824) 2024-09-13 10:12:24 +02:00
epenet e27cee53a8
Improve type hints in ads (#125825)
* Improve type hints in ads

* One more

* Adjust
2024-09-12 15:33:27 +02:00
epenet 059fbe7958
Use HassKey in ads (#125735) 2024-09-11 15:52:44 +02:00
Adam Pasztor d722b7255c
Add ADS valve integration (#125619)
* feat: Add ADS valve integration

* fix: replace imports to adhere with #125665

* fix: address review feedback.

* fix: address review feedback.
2024-09-11 13:02:06 +02:00
Adam Pasztor e261a159d5
Add new functions to ADS sensor integration (#125331)
* feat: Add new functions to ADS sensor integration

* fix: use constant for SensorDeviceClass, refactor entity initialisation.

* fix: add python typing.

* refactor: value conversion based on ADS_TYPE, and in the dedicated data fetching method.

* fix: removed unnecessary sensor types.

* refactor: optimised the usage of device classes and added state classes. removed unit of measurement

* fix: added unit of measurement to ADS sensor

* fix: addressing review suggestions.

* fix: address review suggestions.
2024-09-10 15:51:15 +02:00
epenet 745a05d984
Move Hub and Entity to separate module in ADS (#125665)
* Move Hub and Entity to separate module in ADS

* Missed one
2024-09-10 15:02:09 +02:00
Adam Pasztor 70966c2b63
Add new data types to ADS integration (#125201)
* feat: Introduce new data types to ADS integration.

* refactor: ADS data unpacking based on PLC data type

* refactor: handle BOOL and STRING as special cases.
2024-09-05 12:07:19 +02:00
Erik Montnemery fce2e21c9f
Update icons.json to new service schema part 1 (#124768) 2024-08-28 13:47:02 +02:00
epenet e734971d33
Enable collections-named-tuple (PYI024) rule in ruff (#123019) 2024-08-02 15:28:32 +02:00
epenet c49fce5541
Force alias when importing sensor PLATFORM_SCHEMA (#120536) 2024-06-26 12:14:13 +02:00
epenet 32bab97f00
Force alias when importing light PLATFORM_SCHEMA (#120529) 2024-06-26 11:53:15 +02:00
epenet 2c17d84fab
Force alias when importing cover PLATFORM_SCHEMA (#120522) 2024-06-26 11:25:14 +02:00
epenet 399130bc95
Force alias when importing binary sensor PLATFORM_SCHEMA (#120510) 2024-06-26 10:54:19 +02:00
epenet 9b8922a678
Force alias when importing switch PLATFORM_SCHEMA (#120504) 2024-06-26 10:36:54 +02:00
Adam Pasztor 54a1a4ab41
Bump pyads to 3.4.0 (#116934)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-02 15:41:44 +02:00
Joost Lekkerkerker 02521c9da3
Add service icons to ADS (#113412) 2024-03-14 17:54:55 +01:00
Marc Mueller 2c06d4fcb9
Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Marc Mueller ff3a801936
Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Marc Mueller c82933175d
Use builtin TimeoutError [a-d] (#109678) 2024-02-05 11:31:33 +01:00
J. Nick Koston 262483f3f6
Replace async_timeout with asyncio.timeout A-B (#98415) 2023-08-15 10:29:28 +02:00
Franck Nijhof 0ff015c3ad
Migrate integration services (A) to support translations (#96362) 2023-07-11 23:04:27 +02:00
Franck Nijhof c3936e6f14
Replace isort with ruff (#94302) 2023-06-08 23:43:56 +02:00
Erik Montnemery 231aad7a68
Sort manifests 1 (#87022) 2023-02-08 20:29:44 +01:00
epenet 8ed689fede
Add new rule to enforce relative imports in pylint (#77358)
* Add new rule to enforce relative imports in pylint

* Early return

* Adjust components
2022-08-29 08:55:32 +02:00
epenet 65eb1584f7
Improve entity type hints [a] (#76986) 2022-08-18 15:56:52 +02:00
epenet 20fec104e2
Improve type hints in light [a-i] (#75936)
* Improve type hints in ads light

* Improve type hints in avea light

* Improve type hints in avion light

* Improve type hints in broadlink light

* More type hints

* One more
2022-07-31 20:46:13 +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 a92ab7a669
Adjust CoverEntity function type hints in components (#73912)
Adjust CoverEntity functions in components
2022-06-24 06:40:26 +02:00
epenet c390ec33cd
Use ColorMode enum in ads (#70422) 2022-04-22 19:48:38 -10:00
epenet 246f4e081a
Use EntityFeature enum in components (a**) (#69333) 2022-04-05 23:42:05 +02:00
Erik Montnemery bfbe0d1d76
Migrate ads light to color_mode (#69071) 2022-04-04 10:50:47 +02:00
epenet bfd84ba89c
Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenet 0042bb68d9
Cleanup ADS constants and add type hints (#63390)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 12:58:12 +01:00
epenet f724aea0bb
Ensure service calls are typed [a-j] (#63013)
* Ensure service calls are typed [a-j]

* Adjust apns

* Adjust arlo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 18:50:51 +01:00
epenet 6ffd587788
Add basic type hints to ads (#62738)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-24 14:25:10 +01:00
epenet b5f7e14985
Use new DeviceClass enums in ads (#61249)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:56:59 -08:00
J. Nick Koston 10d6247fee
Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Erik Montnemery 4e07ab1b32
Move temperature conversions to sensor base class (1/8) (#48261)
* Move temperature conversions to entity base class (1/8)

* Update integrations a-c

* Leave old temperature conversion until all integrations are migrated

* tweak

* Use contextlib.suppress

* Remove the MeasurableUnitEntity mixin

* Address comments, add tests

* Fix f-string

* Drop deprecation warning from base entity class

* Update with _attr-shorthand

* Fix rebase mistakes

* Fix additional rebase mistakes

* Only report temperature conversion once

* Fix additional rebase mistakes

* Format homeassistant/components/bbox/sensor.py

* Fix check for overidden _attr_state

* Remove test workarounds from implementation

* Remove useless None-check

* Tweaks

* Migrate new sensors a-c

* Update climacell

* Push deprecation of temperature conversion forward

* Override __repr__ in SensorEntity

* Include native_value in SensorEntity attributes

* Pylint

* Black

* Black

* Fix rebase mistakes

* black

* Fix rebase mistakes

* Revert changes in august/sensor.py

* Revert handling of unit converted restored state

* Apply code review suggestion

* Fix arlo test
2021-08-11 10:45:05 +02:00
carstenschroeder d3007c26b3
Bugfix: Bring back unique IDs for ADS covers after #52488 (#54212) 2021-08-07 21:03:20 -07:00
Robert Hillis 4cac85e3f5
Use entity class attributes for ads (#52488)
* Use entity class attributes for ads

* fix

* Update homeassistant/components/ads/cover.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-07-05 12:03:16 +02:00
tkdrob 028a07d86f
Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob e92516c072
Add targets and selectors to services (A) (#49818) 2021-05-09 02:21:00 +02:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Erik Montnemery 9e9ba53f0e
Move SensorEntity last in the inheritance tree (#48230) 2021-03-22 20:05:13 +01:00
Erik Montnemery e0cd7072d6
Migrate integrations a-c to extend SensorEntity (#48210) 2021-03-22 12:37:16 +01:00