Skip to content

Commit

Permalink
Leave custom config settings in diagnostics.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Sep 17, 2024
1 parent bfda5ea commit 9b3163e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sonoff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
if CONF_APPID in conf and CONF_APPSECRET in conf:
APP[0] = (conf[CONF_APPID], conf[CONF_APPSECRET])
if CONF_DEFAULT_CLASS in conf:
core_devices.set_default_class(conf.pop(CONF_DEFAULT_CLASS))
core_devices.set_default_class(conf.get(CONF_DEFAULT_CLASS))
if CONF_SENSORS in conf:
core_devices.get_spec = core_devices.get_spec_wrapper(
core_devices.get_spec, conf.pop(CONF_SENSORS)
core_devices.get_spec, conf.get(CONF_SENSORS)
)

# cameras starts only on first command to it
Expand Down

0 comments on commit 9b3163e

Please sign in to comment.