mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Edit log message when local version is newer
This commit is contained in:
@@ -104,9 +104,8 @@ async def async_setup(hass, config):
|
||||
_LOGGER.info(
|
||||
"You are on the latest version (%s) of Home Assistant", newest)
|
||||
elif StrictVersion(newest) < StrictVersion(current_version):
|
||||
_LOGGER.warning(
|
||||
"You are before the latest version (%s) of Home Assistant",
|
||||
newest)
|
||||
_LOGGER.debug(
|
||||
"Local version is newer than the latest version (%s)", newest)
|
||||
|
||||
hass.states.async_set(
|
||||
ENTITY_ID, 'on' if update_available else 'off', {
|
||||
|
Reference in New Issue
Block a user