🚑 Fixes issue in version check logic

This commit is contained in:
Franck Nijhof 2017-12-17 23:07:02 +01:00
parent 0684595bfc
commit f36876a726
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -15,7 +15,7 @@ if hass.api.supervisor.ping; then
hass.log.debug "Current Supervisor version: ${version}"
hass.log.debug "Supervisor version condition: ${SUPERVISOR_VERSION}"
if ! semver -q "${SUPERVISOR_VERSION}" "${version}"; then
if semver -q "${SUPERVISOR_VERSION}" "${version}"; then
hass.log.info "Supervisor version requirements checks passed."
else
hass.log.fatal "You Supervisor version is: ${version}"
@ -29,7 +29,7 @@ if hass.api.supervisor.ping; then
hass.log.debug "Current Home Assistant version: ${version}"
hass.log.debug "Home Assistant version condition: ${HOME_ASSISTANT_VERSION}"
if ! semver -q "${HOME_ASSISTANT_VERSION}" "${version}"; then
if semver -q "${HOME_ASSISTANT_VERSION}" "${version}"; then
hass.log.info "Home Assistant version requirements checks passed."
else
hass.log.fatal "You Home Assistant version is: ${version}"