Skip to content

Commit

Permalink
Fix potential mutable dict issue (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuffy2 authored Oct 9, 2023
1 parent b39be4b commit 33341cf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions custom_components/healthchecksio/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""Adds config flow for Blueprint."""
import async_timeout
import asyncio
from collections import OrderedDict

import async_timeout
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from integrationhelper import Logger
from homeassistant import config_entries

from .const import DOMAIN, DOMAIN_DATA, OFFICIAL_SITE_ROOT

Expand All @@ -22,9 +23,7 @@ def __init__(self):
self._errors = {}
self.initial_data = None

async def async_step_user(
self, user_input={}
): # pylint: disable=dangerous-default-value
async def async_step_user(self, user_input=None):
"""Handle a flow initialized by the user."""
self._errors = {}
if self._async_current_entries():
Expand Down Expand Up @@ -78,9 +77,7 @@ async def _show_initial_config_form(self, user_input):
step_id="user", data_schema=vol.Schema(data_schema), errors=self._errors
)

async def async_step_self_hosted(
self, user_input={}
): # pylint: disable=dangerous-default-value
async def async_step_self_hosted(self, user_input):
"""Handle the step for a self-hosted instance."""
self._errors = {}
valid = await self._test_credentials(
Expand Down

0 comments on commit 33341cf

Please sign in to comment.