mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 03:07:50 +00:00

* Startup mechanic * Workable service (again) * Optimized version, for now * Minor refactoring * Test cases * Fixing test case * Adding startup comment * State_unknown added * Update homeassistant/components/fastdotcom/services.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Check if config entries are not found * Update tests/components/fastdotcom/test_service.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/fastdotcom/services.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/fastdotcom/services.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
18 lines
353 B
Python
18 lines
353 B
Python
"""Constants for the Fast.com integration."""
|
|
import logging
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
DOMAIN = "fastdotcom"
|
|
DATA_UPDATED = f"{DOMAIN}_data_updated"
|
|
|
|
CONF_MANUAL = "manual"
|
|
|
|
SERVICE_NAME = "speedtest"
|
|
|
|
DEFAULT_NAME = "Fast.com"
|
|
DEFAULT_INTERVAL = 1
|
|
PLATFORMS: list[Platform] = [Platform.SENSOR]
|