Skip to content

Commit

Permalink
update loggin message and config name
Browse files Browse the repository at this point in the history
  • Loading branch information
N0ciple committed Feb 20, 2024
1 parent ca72dbd commit cd13e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/kef_connector/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

CONF_MAX_VOLUME = "maximum_volume"
CONF_VOLUME_STEP = "volume_step"
CONF_SPEAKER_MODEL = "kef_speaker_model"
CONF_SPEAKER_MODEL = "speaker_model"

DEFAULT_NAME = "DEFAULT_KEFSPEAKER"
DEFAULT_MAX_VOLUME = 1
Expand Down Expand Up @@ -155,12 +155,12 @@ async def async_setup_platform(

if speaker_model not in SOURCES:
sources = SOURCES["default"]
else:
sources = SOURCES[speaker_model]
_LOGGER.warning(
"Kef Speaker model %s is unknown. Using default sources. Please make sure the model is either LSX2, LSX2LT, LS50W2 or LS60",
speaker_model,
)
else:
sources = SOURCES[speaker_model]

_LOGGER.debug(
"Setting up %s with host: %s, name: %s, sources: %s",
Expand Down

0 comments on commit cd13e89

Please sign in to comment.