mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Bump awesomeversion from 20.12.4 to 20.12.5 (#2394)
This commit is contained in:
parent
97c35de49a
commit
4fa2134cc6
@ -2,7 +2,7 @@ aiohttp==3.7.3
|
|||||||
async_timeout==3.0.1
|
async_timeout==3.0.1
|
||||||
atomicwrites==1.4.0
|
atomicwrites==1.4.0
|
||||||
attrs==20.3.0
|
attrs==20.3.0
|
||||||
awesomeversion==20.12.4
|
awesomeversion==20.12.5
|
||||||
brotli==1.0.9
|
brotli==1.0.9
|
||||||
cchardet==2.1.7
|
cchardet==2.1.7
|
||||||
colorlog==4.6.2
|
colorlog==4.6.2
|
||||||
|
@ -6,7 +6,6 @@ from pathlib import Path
|
|||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
from atomicwrites import atomic_write
|
from atomicwrites import atomic_write
|
||||||
from awesomeversion import AwesomeVersion
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from voluptuous.humanize import humanize_error
|
from voluptuous.humanize import humanize_error
|
||||||
|
|
||||||
@ -31,8 +30,6 @@ class JSONEncoder(json.JSONEncoder):
|
|||||||
return list(o)
|
return list(o)
|
||||||
if hasattr(o, "as_dict"):
|
if hasattr(o, "as_dict"):
|
||||||
return o.as_dict()
|
return o.as_dict()
|
||||||
if isinstance(o, AwesomeVersion):
|
|
||||||
return o.string
|
|
||||||
|
|
||||||
return json.JSONEncoder.default(self, o)
|
return json.JSONEncoder.default(self, o)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user