* Obihai: Add reboot service * Switch to button * Remove button.py from coverage * Update homeassistant/components/obihai/const.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/obihai/button.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/obihai/button.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * PR Feedback * Cleanup some typehints * As a class attr --------- Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
15 lines
321 B
Python
15 lines
321 B
Python
"""Constants for the Obihai integration."""
|
|
|
|
import logging
|
|
from typing import Final
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN: Final = "obihai"
|
|
DEFAULT_USERNAME = "admin"
|
|
DEFAULT_PASSWORD = "admin"
|
|
OBIHAI = "Obihai"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
PLATFORMS: Final = [Platform.BUTTON, Platform.SENSOR]
|