Add CONF_STATE_CLASS to sensor/__init__.py
(#54106)
* add CONF_STATE_CLASS to const.py
* move to `sensor/__init__.py`
* move to sensor/const.py
* Revert "move to sensor/const.py"
This reverts commit 604d0d066b
.
* move it to `sensor/const.py` but import it from `sensor/__init__.py`
* add Modbus
This commit is contained in:
parent
65d14909ee
commit
cd0ae66d58
11 changed files with 18 additions and 12 deletions
4
homeassistant/components/sensor/const.py
Normal file
4
homeassistant/components/sensor/const.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
"""Constants for sensor."""
|
||||
from typing import Final
|
||||
|
||||
CONF_STATE_CLASS: Final = "state_class"
|
Loading…
Add table
Add a link
Reference in a new issue