Commit graph

168 commits

Author SHA1 Message Date
epenet
6f93ffb7ee
Add sensor setup type hints [t-v] (#63309)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:20:39 +01:00
epenet
3fe527422d
Add setup type hints to select, vacuum and water_heater (#63300)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:26:14 +01:00
epenet
862daff622
Add binary_sensor setup type hints [s-z] (#63271)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:13:03 +01:00
epenet
6f4b25950c
Add climate setup type hints [m-z] (#63279)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:09:43 +01:00
epenet
e7b262f9e5
Add init type hints [v-z] (#63195)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:27:12 +01:00
GitHub Action
93758e2e6c [ci skip] Translation update 2022-01-01 00:14:34 +00:00
GitHub Action
f205708e56 [ci skip] Translation update 2021-12-31 00:14:15 +00:00
GitHub Action
cc92aa557a [ci skip] Translation update 2021-12-26 00:15:41 +00:00
GitHub Action
cceedf766a [ci skip] Translation update 2021-12-22 00:14:51 +00:00
GitHub Action
babd753610 [ci skip] Translation update 2021-12-21 00:15:06 +00:00
GitHub Action
1f066a7b6f [ci skip] Translation update 2021-12-20 00:15:28 +00:00
GitHub Action
d3710c7ba6 [ci skip] Translation update 2021-12-19 00:14:45 +00:00
GitHub Action
5fefb5985f [ci skip] Translation update 2021-12-18 00:13:26 +00:00
Hans Oischinger
ed1ce7d9f9
Add vicare strings (#61593)
* Add vicare strings

* Remove duplicates

* Remove duplicates from english translation

* Add missing strings
2021-12-17 15:43:41 +01:00
Robert Hillis
b03ead1c9b
Use enums in vicare (#61994) 2021-12-16 09:27:53 +01:00
Marc Mueller
b79b35abb5
Use platform enum (7) [T-Z] (#60948)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-04 14:10:01 +01:00
epenet
3d5f4e54ea
Use dataclass properties in vicare discovery (#60746)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 19:39:03 +01:00
Marc Mueller
de78c4f0f8
Import Callable from collections.abc (#60354) 2021-11-25 22:23:48 +01:00
GitHub Action
9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
Hans Oischinger
38b976e6d6
Add vicare config flow (#56691)
* Configuration via UI

Config flow / YAML deprecation
- Support discovery via MAC address
- Support import of YAML config
- Switch to ConfigEntry, get rid of platform setup

* Fix review comments

* More tests for vicare yaml import
2021-11-22 15:06:42 +01:00
Hans Oischinger
a4fc808e49
Fix broken ViCare burner & compressor sensors (#58962) 2021-11-03 08:45:22 +01:00
Hans Oischinger
3f50e444ca
Improve ViCare energy units (#58630) 2021-10-28 22:58:28 +02:00
Hans Oischinger
066610923e
Support ViCare energy units (#58433) 2021-10-27 21:15:54 +02:00
Hans Oischinger
e656974e8d
Increase setMode flexibility (#58491) 2021-10-27 14:22:16 +02:00
Hans Oischinger
8e8ccb7ce4
Fix Vicare unique_ids (#58531) 2021-10-27 14:19:26 +02:00
Hans Oischinger
d5142bcf51
Update PyVicare to 2.13.1 (#58422)
See changelog: https://github.com/somm15/PyViCare/releases/tag/2.13.1
2021-10-25 21:54:21 +02:00
Hans Oischinger
66ae116023
Update PyVicare to 2.13.0 (#57700)
* Update PyVicare to 2.x

With PyViCare 2.8.1 a breaking change was introduced which required changes on sensor and binary_sensor platforms:
- Circuit, Burner and Compressor have been separated out from the "main" device
- Multiple circuits and burners allow "duplicate sensors". We add the circuit or burner number as suffix now

At the same time the sensors are now created only when available:
During entity creation we can check if the value is provided for the user's device.

Sensors are not created by heating type anymore but instead the new API structure is reflected, providing device, burner or circuit sensors.

For details of breaking changes from PyViCare 1.x to 2.x please see https://github.com/somm15/PyViCare#breaking-changes-in-version-2x

* Integrate review comments

* variables cleanup

* Update unique ids

The unique ids shall not depend on the name but on the entity
description key (which should not change) and the id of the circuit,
burner or device.
2021-10-25 13:43:43 +02:00
Marc Mueller
ff853b2d53
Use assignment expressions 19 (#57968) 2021-10-18 15:54:38 +02:00
Martin
316070f1e9
Fix vicare binary sensor (#56912) 2021-10-01 21:46:44 +02:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
Marc Mueller
2b51896d7a
Use EntityDescription - vicare (#55932)
* Use EntityDescription - vicare binary_sensor

* Use EntityDescription - vicare sensor

* Fix typing

* Remove default values

* Fix pylint
2021-09-14 22:06:06 +02:00
Erik Montnemery
ae507aeed1
Move temperature conversions to sensor base class (8/8) (#54483)
* Move temperature conversions to entity base class (8/8)

* Fix wallbox sensor

* Fix tests
2021-08-11 21:17:16 +02:00
Hans Oischinger
84dc6af760
Update to PyVicare 1.0 (#53281) 2021-07-22 21:56:38 +02:00
tkdrob
5d6f4068d3
Add targets and selectors for services (U-W) (#50630)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-15 10:49:10 +02:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Nicolas Braem
71a410c742
Correct vicare power production device class (#49040) 2021-04-11 10:52:28 +02:00
Nicolas Braem
42156bafe0
Change vicare unit of power production current to POWER_WATT (#49000) 2021-04-10 23:02:08 +02:00
Nicolas Braem
96857b7466
Add vicare fuelcell (#47167) 2021-03-31 11:29:24 +02:00
Marc Mueller
2956eb0902
Update pylint to 2.7.3 (#48488)
* Update pylint to 2.7.3

* Add class-const-naming-style

* Remove unused-import message

* Additional cleanup
2021-03-29 18:02:56 -10:00
Erik Montnemery
783b453bbe
Migrate integrations t-v to extend SensorEntity (#48216) 2021-03-22 19:47:44 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() (#47760) 2021-03-11 20:16:26 +01: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
Marc Mueller
16dcbf1467
Update pylint (#47205) 2021-02-28 22:09:01 -10:00
Martin
c7db2c35b7
Add vicare heat pump sensors (#41413) 2021-01-29 08:55:51 +01:00
Hans Oischinger
2925474a5d
Bump pyVicare to 0.2.5 (#45301)
Also removes the power sensor that is no more supported

Full diff between 0.2.0 and 0.2.5:
b602c1670e...b443a4df75
2021-01-21 08:12:31 +01:00
Hans Oischinger
853420d972
Add Vicare set mode service (#44563)
* vicare: add set_vicare_mode service

The set_vicare_mode service allows the user to set any of the possible heating
modes of their heating device. Not just the ones that were mapped to
home assistant climate modes.

* vicare: Undo async changes and add heating mode

Useless async changes were undone.

To be able to set the most relevant modes the set_vicare_mode
shall be able to also set the heating mode (without domestic
hot water)

* Extract kwarg and undo some more async changes

Currectly extract the service argument

Adapt according to review

* Lint fixes

* Replace kwargs with single arg

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-05 12:12:31 +01:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
Martin
95d980da4a
Fix base class for ViCare binary sensor to remove warning (#37478) 2020-07-04 19:39:45 +02:00