Skip to content

Commit

Permalink
Merge pull request #132 from illuzn/fix_json_patch
Browse files Browse the repository at this point in the history
Fixes #131
  • Loading branch information
fvanroie committed Jul 12, 2024
2 parents 5dfa78a + b7bd825 commit b42c822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/openhasp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ async def send_lines(lines):
try:
pages_file = await self.hass.async_add_executor_job(self._read_file, path)
if path.endswith(".json"):
json_data = json.load(pages_file)
json_data = json.loads(pages_file)
jsonschema.validate(instance=json_data, schema=self.json_schema)
lines = []
for item in json_data:
Expand Down

0 comments on commit b42c822

Please sign in to comment.