* 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 e256c35bb7
.
* 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>
12 lines
331 B
Python
12 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"
|