mirror of
https://github.com/home-assistant/core
synced 2024-08-28 03:36:46 +02:00
![Joost Lekkerkerker](/assets/img/avatar_default.png)
* Move constant values to separate file * Move constant values to separate file * Add config flow to lastfm * Add tests * Add config flow to lastfm * Add tests * Add tests * Add tests * Add extra form for main user and autofill with friends * Add extra form for main user and autofill with friends * Add extra form for main user and autofill with friends * Add extra form for main user and autofill with friends * Add OptionsFlow * Add tests * Fix feedback * Fix feedback * Fix feedback * Fix feedback * Fix test * Apply suggestions from code review Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Update config_flow.py * Update config_flow.py * Update config_flow.py * Update homeassistant/components/lastfm/config_flow.py Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Add tests * Cleanup * Update config_flow.py * Update config_flow.py * Update config_flow.py * Fix test * Fix feedback * Codeowner lastfm * Fix feedback * Fix feedback * Parametrize errors * Parametrize errors * Parametrize errors * Finish tests --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
20 lines
418 B
Python
20 lines
418 B
Python
"""Constants for LastFM."""
|
|
import logging
|
|
from typing import Final
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
DOMAIN: Final = "lastfm"
|
|
PLATFORMS = [Platform.SENSOR]
|
|
DEFAULT_NAME = "LastFM"
|
|
|
|
CONF_MAIN_USER = "main_user"
|
|
CONF_USERS = "users"
|
|
|
|
ATTR_LAST_PLAYED = "last_played"
|
|
ATTR_PLAY_COUNT = "play_count"
|
|
ATTR_TOP_PLAYED = "top_played"
|
|
|
|
STATE_NOT_SCROBBLING = "Not Scrobbling"
|