forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade homeassistant-core container
- Loading branch information
Showing
6 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "testing go2rtc..." | ||
go2rtc --version | ||
echo "go2rtc ok" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
print("testing sqlite3...") | ||
|
||
import os | ||
import sqlite3 | ||
from packaging.version import Version | ||
|
||
|
||
SQLITE_VERSION = os.getenv('SQLITE_VERSION', None) | ||
|
||
current_version = Version(sqlite3.sqlite_version) | ||
required_version = Version(SQLITE_VERSION) | ||
|
||
if not SQLITE_VERSION: | ||
raise AssertionError( | ||
f"SQLITE_VERSION env variable is not set!" | ||
) | ||
|
||
print(f'sqlite3 version: {current_version} [required: {required_version}]') | ||
|
||
if current_version < required_version: | ||
raise AssertionError( | ||
f"SQLite version is {current_version}, but {required_version} is required." | ||
) | ||
|
||
print("sqlite3 ok") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from pkg_resources import get_distribution | ||
|
||
print("testing homeassistant...") | ||
|
||
import homeassistant | ||
|
||
print(f"Home Assistant version: {get_distribution("homeassistant").version}") | ||
|
||
print("homeassistant OK") |