hass-core/tests/components/sma/__init__.py
Robert Hillis f028079815
Remove deprecated yaml config from sma (#62472)
Co-authored-by: René Klomp <rene@klomp.ws>
2022-01-04 16:04:16 +01:00

24 lines
507 B
Python

"""Tests for the sma integration."""
from unittest.mock import patch
MOCK_DEVICE = {
"manufacturer": "SMA",
"name": "SMA Device Name",
"type": "Sunny Boy 3.6",
"serial": "123456789",
}
MOCK_USER_INPUT = {
"host": "1.1.1.1",
"ssl": True,
"verify_ssl": False,
"group": "user",
"password": "password",
}
def _patch_async_setup_entry(return_value=True):
return patch(
"homeassistant.components.sma.async_setup_entry",
return_value=return_value,
)