Skip to content

Commit d10d016

Browse files
committed
Reduce verbosity while downloading ota files
1 parent c712d16 commit d10d016

File tree

1 file changed

+4
-4
lines changed
  • custom_components/zha_toolkit

1 file changed

+4
-4
lines changed

custom_components/zha_toolkit/ota.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def download_koenkk_ota(listener, ota_dir):
7474
try:
7575
out_filename = os.path.join(ota_dir, filename)
7676

77-
LOGGER.info("Download '%s' to '%s'", url, out_filename)
77+
LOGGER.debug("Download '%s' to '%s'", url, out_filename)
7878
async with req.get(url) as rsp:
7979
data = await rsp.read()
8080

@@ -145,7 +145,7 @@ async def download_sonoff_ota(listener, ota_dir):
145145
try:
146146
out_filename = os.path.join(ota_dir, filename)
147147

148-
LOGGER.info("Download '%s' to '%s'", url, out_filename)
148+
LOGGER.debug("Download '%s' to '%s'", url, out_filename)
149149
async with req.get(url) as rsp:
150150
data = await rsp.read()
151151

@@ -165,12 +165,12 @@ async def download_zigpy_ota(app, listener):
165165
await ota.refresh_firmware_list()
166166
for image_key, image in ota._cache.items():
167167
url = getattr(image, "url", None)
168-
LOGGER.error("Try getting %r, %r, %r", image_key, url, image)
168+
LOGGER.debug("Try getting %r, %r, %r", image_key, url, image)
169169
try:
170170
img = await app.ota.get_ota_image(
171171
image_key.manufacturer_id, image_key.image_type, model=None
172172
)
173-
LOGGER.info("Got image %r", getattr(img, "header", None))
173+
LOGGER.debug("Got image %r", getattr(img, "header", None))
174174
except Exception as e:
175175
LOGGER.error("%r while getting %r - %s", e, image_key, url)
176176

0 commit comments

Comments
 (0)