mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00

* Implement support for SwitchBot MeterPlus Add temperature, humidity, and battery sensor entities for the MeterPlus device * Rename GH username * Update homeassistant/components/switchbot_cloud/coordinator.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Refactor to use EntityDescriptions Concat entity ID in SwitchBotCloudSensor init * Remove __future__ import * Make scan interval user configurable * Add support for Meter and Outdoor Meter * Revert "Make scan interval user configurable" This reverts commit e256c35bb71e598cf879e05e1df21dff8456b09d. * Remove device-specific default scan intervals * Update homeassistant/components/switchbot_cloud/sensor.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/switchbot_cloud/sensor.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/switchbot_cloud/sensor.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Fix ruff errors * Reorder manifest keys * Update CODEOWNERS * Add sensor.py to coveragerc --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
13 lines
331 B
Python
13 lines
331 B
Python
"""Constants for the SwitchBot Cloud integration."""
|
|
|
|
from datetime import timedelta
|
|
from typing import Final
|
|
|
|
DOMAIN: Final = "switchbot_cloud"
|
|
ENTRY_TITLE = "SwitchBot Cloud"
|
|
DEFAULT_SCAN_INTERVAL = timedelta(seconds=600)
|
|
|
|
SENSOR_KIND_TEMPERATURE = "temperature"
|
|
SENSOR_KIND_HUMIDITY = "humidity"
|
|
SENSOR_KIND_BATTERY = "battery"
|