Skip to content

Commit

Permalink
🔧 fix blocking call
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jul 7, 2024
1 parent 7dc79fc commit 4640304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_miot/system_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ async def system_health_info(hass):
api = mic.get_api_url('') if mic else 'https://api.io.mi.com'
api_spec = 'https://miot-spec.org/miot-spec-v2/spec/services'

version = await hass.async_add_executor_job(get_manifest, 'version', 'unknown')
data = {
'component_version': get_manifest('version', 'unknown'),
'component_version': version,
'can_reach_server': system_health.async_check_can_reach_url(hass, api),
'can_reach_spec': system_health.async_check_can_reach_url(
hass, api_spec, 'https://home.miot-spec.com/?cant-reach',
Expand Down

0 comments on commit 4640304

Please sign in to comment.