From c0f5fe84f317b1744279f9acc2af079c02b3de0f Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Thu, 25 May 2023 15:07:18 +0200 Subject: [PATCH] Add lastfm documentation (#27268) * Add lastfm documentation * Apply suggestions from code review Co-authored-by: G Johansson * Update lastfm.markdown --------- Co-authored-by: G Johansson --- source/_integrations/lastfm.markdown | 31 +++------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/source/_integrations/lastfm.markdown b/source/_integrations/lastfm.markdown index ac57d20771b..14454ef08fd 100644 --- a/source/_integrations/lastfm.markdown +++ b/source/_integrations/lastfm.markdown @@ -9,38 +9,13 @@ ha_domain: lastfm ha_platforms: - sensor ha_integration_type: integration +ha_config_flow: true --- The `lastfm` sensor platform will allow you to see whenever a user starts scrobbling, their play count, last song played, and top song played on [Last.fm](https://www.last.fm/). -## Setup +## Prerequisites To get an API key you need to create an [API account](https://www.last.fm/api/account/create). -## Configuration - -To use Last.fm sensor with your installation, add the following to your `configuration.yaml` file: - -```yaml -# Example configuration.yaml entry -sensor: - - platform: lastfm - api_key: YOUR_API_KEY - users: - - user1 - - user2 -``` - -{% configuration %} -api_key: - description: Your Last.fm API key. - required: true - type: string -users: - description: List of users. - required: true - type: list - keys: - username: - description: Username of the user to monitor. -{% endconfiguration %} +{% include integrations/config_flow.md %}