Commit Graph

41595 Commits

Author SHA1 Message Date
rianadon
ecf00a1eae Add accumulated precipitation to unit system (#59657)
* Add accumulated precipitation to unit system

* Fix template test

* Fix typo of testing pressure instead of precipitation

* Add extra arguments so unit system test passes
2021-11-19 09:18:44 +01:00
deftdawg
b8ec0825d3 Add energy support to Neurio_Energy (#54445)
* - Patch Neurio_Energy to support new HA energy

Enables the Neurio Energy Meter as a Consumption device for Home Assistant Energy

* Only return last_reset value for DEVICE_CLASS_ENERGY

* Update homeassistant/components/neurio_energy/sensor.py

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

* Update with recommendations from CI/Black

* Support new style typing

* Attempt setting the state_class statically

* Make state class static

* Changing state class to STATE_CLASS_TOTAL_INCREASING and removing last_reset seems to work ok

* Remove unused datetime import that was previously in last_reset

* Apply suggestions from code review

apply emontnemery's recommended changes

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-19 09:16:08 +01:00
J. Nick Koston
2f00f8d3de Prevent executor overload when starting many homekit instances (#59950) 2021-11-18 22:39:49 -08:00
Franck Nijhof
073bf6d6fd Use native datetime value inMobile App sensors (#59945) 2021-11-18 22:36:28 -08:00
Franck Nijhof
f7b7786d0d Use native datetime value in UniFi sensors (#59926) 2021-11-19 07:35:09 +01:00
Daniel Hjelseth Høyer
a3d5aec778 Mill local access (#59549)
* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Mill local

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Update homeassistant/components/mill/config_flow.py

Co-authored-by: Allen Porter <allen@thebends.org>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* coveragerc

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Fix review comments

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Co-authored-by: Allen Porter <allen@thebends.org>
2021-11-18 21:44:45 -08:00
Nathan Spencer
406cbcfe2d Use an assumed switch state until refresh callback is complete (#59805) 2021-11-18 21:29:38 -08:00
Aaron Bach
ff21453f58 Migrate appropriate Ridwell sensors to use datetime state objects (#59944)
* Migrate appropriate Ridwell sensors to use datetime state objects

* Linting

* Whoops
2021-11-18 22:24:12 -07:00
J. Nick Koston
347c4ea137 Bump zeroconf to 0.37.0 (#59932) 2021-11-18 20:23:20 -08:00
Robin Dupont
4598353315 Add apparent_power for ZHA ElectricalMeasurement (#59857)
* Add apparent_power for ZHA ElectricalMeasurement

* Add apparent_power to REPORT_CONFIG

* update device list with apparent_power attribute

* update test decorators for apparent_power

* remove comments

* Add test for apparent_power in test_sensor
2021-11-18 19:43:08 -05:00
GitHub Action
29dc9de08f [ci skip] Translation update 2021-11-19 00:14:01 +00:00
Paulus Schoutsen
442597928e Store: copy pending data (#59934) 2021-11-18 15:56:22 -08:00
J. Nick Koston
0fb21af07f Strip out deleted entities when configuring homekit (#59844) 2021-11-18 15:21:51 -08:00
Franck Nijhof
8fb84270d5 Fix Tuya back scaling in Climate and Humidifer entities (#59909) 2021-11-18 15:21:27 -08:00
Paul Frank
a3139595bb Remove zwave_js cover workaround (#59939) 2021-11-18 23:04:21 +01:00
Eduard van Valkenburg
958c199d80 Brunt package update with async, data update coordinator and config flow (#49714)
* implemented config_flow and dataupdatecoordinator

* implemented config flow, dataupdatecoordinator and tests.

* undid extra vscode task

* fixed pylint errors

* updates based on review

* fix mypy in reauth

* fast interval to 5 sec

* fixed test patches and others from review

* added released package

* deleted wrong line from coveragerc

* updates to config and tests

* fixed test patch
2021-11-18 23:00:42 +01:00
starkillerOG
05eb2f3e5c Yeelight add state check to set_mode service (#59884) 2021-11-18 15:52:57 -06:00
Franck Nijhof
1ecd9c9459 Use native datetime value in OctoPrint sensors (#59927) 2021-11-18 22:42:21 +01:00
Franck Nijhof
8a0c5aa50b Use native datetime value in RDW sensors (#59914) 2021-11-18 20:07:38 +01:00
Franck Nijhof
5593dd4006 Use native datetime value in WLED sensors (#59907) 2021-11-18 20:03:40 +01:00
Franck Nijhof
fc29611935 Use native datetime value in Uptime sensors (#59916) 2021-11-18 20:03:30 +01:00
Franck Nijhof
4e4f6ffa07 Use native datetime value in Jewish Calendar sensors (#59917) 2021-11-18 20:03:16 +01:00
Franck Nijhof
3adb9e4143 Use native datetime value in Tasmota sensors (#59915) 2021-11-18 20:03:04 +01:00
Franck Nijhof
fc330f797d Use native datetime value in Forecast Solar sensors (#59913) 2021-11-18 19:58:31 +01:00
epenet
9ccee205ca Use ZeroconfServiceInfo in gogogate2 (#59746)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-18 12:14:00 -06:00
J. Nick Koston
f751d6e064 Add additional bulb ouis to flux_led (#59868) 2021-11-18 11:45:38 -05:00
Franck Nijhof
24f3fd35c9 Fix shorthand native value type in sensor entity component (#59908) 2021-11-18 17:37:52 +01:00
Erik Montnemery
d18c250acf Add minor version support to storage.Store (#59882) 2021-11-18 17:15:40 +01:00
J. Nick Koston
cc3f179796 Ensure powerview setup is retried on 502 error (#59847) 2021-11-18 09:57:31 -06:00
PlusPlus-ua
a211b8ca8f Bugfix in Tuya Number value scaling (#59903) 2021-11-18 16:53:34 +01:00
epenet
329904dfbb Add type hints to SSDP (#59840) 2021-11-18 09:49:36 -06:00
epenet
28ff1b9d9e Use native date value in Renault sensors (#59900)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-18 16:15:54 +01:00
rianadon
7cc7bbb76d Add speed to units system (#58437)
* Use speed units in unit system

* Use more obvious conversion factor for unit system speed test

* Use wind_speed instead of speed, use m/s
2021-11-18 16:08:42 +01:00
Ullrich Neiss
3dc0b9537c Move Kostal Plenticore writable settings from sensor to select widget or switch (#56529)
* Move "Battery:SmartBatteryControl:Enable" from a simple sensor to a switch
Add "Battery:TimeControl:Enable" as a switch

If you want to change charging behavior you need to turn off both switches, before you can enable the function you want. (Same as on Plenticore UI)

* removed:
    @property
    def assumed_state(self) -> bool

was copied from an switchbot integration, does not make sense or does deliver valuable information

Tried to set constant properties in the constructor

* correct typo, add new line at eof

* Initial state of switch was missing after (re)starting HA. Now working.

* Reformatted with black

* correct syntax errors from test run 09.10.2021

* reformat

* update 15.10.2021

* Set select value is working

* update 05.11.2021

* data correctly received

* working completly

* remove old switch definitions, now replaced by select widget

* correct complaints from workflow run on 11/11/2021

* Add explanatory comment for switch and select

* Correct comments

* Removed function async def async_read_data(self, module_id: str, data_id: str)
from class SettingDataUpdateCoordinator

* Add Mixin class for read/write

* try to make select.py less "stale"

* new dev environment 2

* new dev environment 2

* correct syntax

* minor coding standard correction

* Remove BOM

* Remove BOM on select.py

* Updated .coveragerc
2021-11-18 16:06:32 +01:00
Franck Nijhof
5e07bc38c1 Use native date value in Twente Milieu sensors (#59897) 2021-11-18 15:32:50 +01:00
Franck Nijhof
4a83ee5dab Use native datetime value in ESPHome sensors (#59896) 2021-11-18 15:32:39 +01:00
bwduncan
ec6a67d17a Use correct Nissan leaf device_class (#59889) 2021-11-18 15:23:57 +01:00
bwduncan
9ab8622d72 Fix Nissan Leaf default states (#59866)
* Fix default states and add device_class.

Car data is initialised to zero, which means that graphs have an ugly
drop to zero in them when HA is restarted. We should report "None" when
the state is unknown.

We need to use availability to signal whether binary_sensors have
sensible data or not.

We can remove the custom icons and use the defaults provided by using
appropriate device_class.

* Make isort happy.

* Explicitly return None

* Remove feature from bugfix PR.
2021-11-18 15:18:25 +01:00
Erik Montnemery
b13e4e9953 Small tweak of TriggerEntity typing (#59875) 2021-11-18 14:34:07 +01:00
Franck Nijhof
01efe1eba2 Add datetime object as valid StateType (#52671)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-18 14:11:44 +01:00
Thomas Schamm
92ca94e915 Add cover platform to bosch_shc integration (#51443)
Co-authored-by: Artem Draft <Drafteed@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-18 14:00:01 +01:00
Simone Chemelli
a41d336724 Scsgate logging from warn(deprecated) to warning (#59862) 2021-11-18 13:13:45 +01:00
Erik Montnemery
1609c0cc2c Sort some entity_registry code (#59876)
* Sort some entity_registry code

* Sort some more entity_registry code

* Tweak
2021-11-18 11:51:32 +01:00
Franck Nijhof
87f2eb3bd7 Upgrade sentry-sdk to 1.5.0 (#59842) 2021-11-18 11:33:53 +01:00
Erik Montnemery
bfafeb7965 Don't mock all of pychromecast in tests (#59839) 2021-11-18 11:28:35 +01:00
uvjustin
bb731fad5d Bump httpx from 0.19.0 to 0.21.0 (#59723)
* Bump httpx from 0.19.0 to 0.21.0

* Bump respx from 0.17.0 to 0.19.0
2021-11-18 18:11:46 +08:00
Tomas Kislan
cfc02fc9f4 Update minio dependency to 5.0.10 (#59878)
* Update minio dependency to 5.0.10

* Update minio dependency in manifest file
2021-11-18 10:59:04 +01:00
dependabot[bot]
5c01ed7edf Bump actions/setup-python from 2.2.2 to 2.3.0 (#59873)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.2.2...v2.3.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-18 10:21:08 +01:00
uvjustin
5f96ed19d9 Remove -bb option from tox and ci (#59846) 2021-11-18 13:23:25 +08:00
Jonathan Keljo
94bfa5272d Remove the need for generics in greeneye_monitor.sensor (#58782)
* Remove the need for generics in greeneye_monitor.sensor

* Remove unused imports

* Store monitor and use a property instead
2021-11-17 20:30:58 -08:00