* vesync: change device to match pyvesync type
* MartinHjelmare's suggestion for derived classes
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* MartinHjelmare's suggestion for derived classes
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* MartinHjelmare's suggestion for derived classes
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* MartinHjelmare's suggestion for annotations
* vesync: fix imports
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Refactor attribute inclusion for VeSync fans.
A recent change to pyvesync (introduced in 2.2) changed `air_quality` to
refer to air quality as an integer representation of perceived air
quality rather than a direct reading of the PM2.5 sensor. With 2.3 the
PM2.5 sensor access was restored as `air_quality_value`. Unfortunately,
`air_quality_value` was not added as an attribute on the fan object, and
rather only exists in the `details` dictionary on the fan object.
* Update homeassistant/components/vesync/fan.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Rename `air_quality_value` attribute to `pm25`
This should make it more clear what the attribute actually represents
* `air_quality` attribute reports `air_quality_value`
This restores previous behavior for this integration to what it was
before the `pyvesync==2.02` upgrade, using the `air_quality` attribute
to report pm2.5 concentrations (formerly `air_quality`) rather the
vague measurement now reported by `air_quality`.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use EntityFeature enum in vallox
* Use EntityFeature enum in velbus
* Use EntityFeature enum in velux
* Use EntityFeature enum in venstar
* Use EntityFeature enum in vera
* Use EntityFeature enum in verisure
* Use EntityFeature enum in vesync
* Use EntityFeature enum in vicare
* Use EntityFeature enum in vivotek
* Use EntityFeature enum in vizio
* Use EntityFeature enum in vlc
* Use EntityFeature enum in vlc_telnet
* Use EntityFeature enum in volumio
* Drop return value from vesync
* Add setup type hints to netgear_lte
* Drop return value from hyperion
* Add setup type hints to opentherm_gw
Co-authored-by: epenet <epenet@users.noreply.github.com>