8000 Cannot import name 'save_json' · Issue #30 · DSorlov/swemail · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot import name 'save_json' #30
Open
@githubpassera

Description

@githubpassera

Hi, I'm getting below error.

Platform error 'sensor' from integration 'postnord' - cannot import name 'save_json' from 'homeassistant.util.json'

WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('custom_components.postnord-master.sensor',) in /usr/src/homeassistant/homeassistant/loader.py, line 1303: return importlib.import_module(f"{self.pkg_path}.{platform_name}") inside the event loop; This is causing stability issues.
File "/config/custom_components/postnord-master/sensor.py", line 20, in
from homeassistant.util.json import load_json, save_json
ImportError: cannot import name 'save_json' from 'homeassistant.util.json' (/usr/src/homeassistant/homeassistant/util/json.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0