mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
parent
b41b7aeb5b
commit
ecadf6a330
@ -57,7 +57,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: MealieConfigEntry) -> bo
|
|||||||
|
|
||||||
if not version.valid:
|
if not version.valid:
|
||||||
LOGGER.warning(
|
LOGGER.warning(
|
||||||
"It seems like you are using the nightly version of Mealie, nightly versions could have changes that stop this integration working"
|
"It seems like you are using the nightly version of Mealie, nightly"
|
||||||
|
" versions could have changes that stop this integration working"
|
||||||
)
|
)
|
||||||
if version.valid and version < MIN_REQUIRED_MEALIE_VERSION:
|
if version.valid and version < MIN_REQUIRED_MEALIE_VERSION:
|
||||||
raise ConfigEntryError(
|
raise ConfigEntryError(
|
||||||
|
@ -98,8 +98,8 @@ async def test_setup_invalid(
|
|||||||
await setup_integration(hass, mock_config_entry)
|
await setup_integration(hass, mock_config_entry)
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
"It seems like you are using the nightly version of Mealie, nightly versions could have changes that stop this integration working"
|
"It seems like you are using the nightly version of Mealie, nightly"
|
||||||
in caplog.text
|
" versions could have changes that stop this integration working" in caplog.text
|
||||||
)
|
)
|
||||||
assert mock_config_entry.state is ConfigEntryState.LOADED
|
assert mock_config_entry.state is ConfigEntryState.LOADED
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user