iOS/Sources/Shared/Domain/DeviceClass.swift
Bruno Pantaleão Gonçalves 6052bda389
Display device class based state in widgets (#4252)
<!-- 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. -->
2026-01-26 15:31:46 +01:00

45 lines
750 B
Swift

import Foundation
public enum DeviceClass: String, CaseIterable {
case battery
case cold
case connectivity
case door
case garage
case garageDoor = "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
case gate
case damper
case shutter
case curtain
case blind
case shade
case restart
case update
case outlet
case `switch`
case unknown
}