mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
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
This commit is contained in:
parent
be3e720c57
commit
b392d61391
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user