From b392d6139131aac2895ae1c8e43f9642474a1684 Mon Sep 17 00:00:00 2001 From: Carlos Gustavo Sarmiento Date: Sun, 11 Aug 2024 11:50:11 -0500 Subject: [PATCH] Update MPD Player to use HOST and PORT to detect duplicate configs (#123410) * Allow Monetary device_class to accept `Measurement` state_class * Update MPD Player to use HOST and PORT to detect duplicate configs --- homeassistant/components/mpd/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/mpd/config_flow.py b/homeassistant/components/mpd/config_flow.py index 619fb8936e2..f37ebe5e5e8 100644 --- a/homeassistant/components/mpd/config_flow.py +++ b/homeassistant/components/mpd/config_flow.py @@ -32,7 +32,9 @@ class MPDConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a flow initiated by the user.""" errors = {} if user_input: - self._async_abort_entries_match({CONF_HOST: user_input[CONF_HOST]}) + self._async_abort_entries_match( + {CONF_HOST: user_input[CONF_HOST], CONF_PORT: user_input[CONF_PORT]} + ) client = MPDClient() client.timeout = 30 client.idletimeout = 10