···4 # the frontend version corresponding to a specific home-assistant version can be found here
5 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
6 pname = "home-assistant-frontend";
7- version = "20231030.1";
8 format = "wheel";
910 src = fetchPypi {
···12 pname = "home_assistant_frontend";
13 dist = "py3";
14 python = "py3";
15- hash = "sha256-S363j7HnOxLqCBaml1Kb9xfY0AaqBIgj09NutByn6Xo=";
16 };
1718 # there is nothing to strip in this package
···4 # the frontend version corresponding to a specific home-assistant version can be found here
5 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
6 pname = "home-assistant-frontend";
7+ version = "20231030.2";
8 format = "wheel";
910 src = fetchPypi {
···12 pname = "home_assistant_frontend";
13 dist = "py3";
14 python = "py3";
15+ hash = "sha256-qzodzqWpAXZjwBJkiCyBi5zzfpEqqtauJn2PKZ5UtJ0=";
16 };
1718 # there is nothing to strip in this package
···56 ],
57}
5859+# Sometimes we have unstable versions for libraries that are not
60+# well-maintained. This allows us to mark our weird version as newer
61+# than a certain wanted version
62+OUR_VERSION_IS_NEWER_THAN = {
63+ "blinkstick": "1.2.0",
64+ "gps3": "0.33.3",
65+ "pybluez": "0.22",
66+}
67+686970def run_sync(cmd: List[str]) -> None:
···235 Version.parse(our_version)
236 except InvalidVersion:
237 print(f"Attribute {attr_name} has invalid version specifier {our_version}", file=sys.stderr)
238+239+ # allow specifying that our unstable version is newer than some version
240+ if newer_than_version := OUR_VERSION_IS_NEWER_THAN.get(attr_name):
241+ attr_outdated = Version.parse(newer_than_version) < Version.parse(required_version)
242+ else:
243+ attr_outdated = True
244 else:
245 attr_outdated = Version.parse(our_version) < Version.parse(required_version)
246 finally: