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:
Martin Hjelmare 2021-04-01 15:05:10 +02:00 committed by GitHub
parent efa6079c62
commit fdbef90a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 26 additions and 25 deletions

View file

@ -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": [