1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-24 15:07:07 +00:00

13 Commits

Author SHA1 Message Date
epenet
420733a064
Improve entity type hints [n] () 2022-09-05 07:53:55 -05:00
epenet
80b6195505
Add sensor setup type hints [m-n] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:09:36 +01:00
epenet
c4c9dc8cee
Use new enums in neurio_energy () 2021-12-16 22:45:27 +01:00
deftdawg
b8ec0825d3
Add energy support to Neurio_Energy ()
* - 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
Erik Montnemery
103e21c278
Move temperature conversions to sensor base class (5/8) () 2021-08-12 13:26:17 +02:00
Franck Nijhof
39b090d957
Add state class to Neurio energy () 2021-06-23 10:41:48 -07:00
Erik Montnemery
c900e3030b
Migrate integrations n-q to extend SensorEntity () 2021-03-22 19:46:46 +01:00
czechmark
354058f020
Fix Neurio Sensor by making the sensor ID required () 2020-11-09 10:23:04 +01:00
Diefferson Koderer Môro
265a1f1fb6 Move imports in neurio_energy component () 2019-10-21 09:54:51 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings ()
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00