Remove device class timestamp from device condition and trigger (#48431)
* Remove unit from garmin connect * Remove unit from hvv departures * Remove device class timestamp from device condition and trigger * Remove unit from systemmonitor * Use device class constant for timestamp in ring
This commit is contained in:
parent
efa6079c62
commit
fdbef90a57
10 changed files with 26 additions and 25 deletions
|
@ -1,6 +1,10 @@
|
|||
"""This component provides HA sensor support for Ring Door Bell/Chimes."""
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.const import PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT
|
||||
from homeassistant.const import (
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
PERCENTAGE,
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.icon import icon_for_battery_level
|
||||
|
||||
|
@ -210,7 +214,7 @@ SENSOR_TYPES = {
|
|||
None,
|
||||
"history",
|
||||
None,
|
||||
"timestamp",
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
HistoryRingSensor,
|
||||
],
|
||||
"last_ding": [
|
||||
|
@ -219,7 +223,7 @@ SENSOR_TYPES = {
|
|||
None,
|
||||
"history",
|
||||
"ding",
|
||||
"timestamp",
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
HistoryRingSensor,
|
||||
],
|
||||
"last_motion": [
|
||||
|
@ -228,7 +232,7 @@ SENSOR_TYPES = {
|
|||
None,
|
||||
"history",
|
||||
"motion",
|
||||
"timestamp",
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
HistoryRingSensor,
|
||||
],
|
||||
"volume": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue