mirror of
https://github.com/home-assistant/iOS.git
synced 2026-05-02 05:08:25 -05:00
Add device class to app database (#3548)
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. -->
This commit is contained in:
committed by
GitHub
parent
107f875a91
commit
7e334405c7
@@ -138,37 +138,6 @@ public class WebhookSensor: Mappable, Equatable, Comparable {
|
||||
}
|
||||
}
|
||||
|
||||
public enum DeviceClass: String, CaseIterable {
|
||||
case battery
|
||||
case cold
|
||||
case connectivity
|
||||
case door
|
||||
case garage_door
|
||||
case gas
|
||||
case heat
|
||||
case humidity
|
||||
case illuminance
|
||||
case light
|
||||
case lock
|
||||
case moisture
|
||||
case motion
|
||||
case moving
|
||||
case occupancy
|
||||
case opening
|
||||
case plug
|
||||
case power
|
||||
case presence
|
||||
case pressure
|
||||
case problem
|
||||
case safety
|
||||
case smoke
|
||||
case sound
|
||||
case temperature
|
||||
case timestamp
|
||||
case vibration
|
||||
case window
|
||||
}
|
||||
|
||||
public class WebhookSensorContext: MapContext {
|
||||
public var SensorUpdate: Bool = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user