Skip to content

Commit

Permalink
Fixes empty content reply from the API
Browse files Browse the repository at this point in the history
#126

Signed-off-by: Vadim Grinco <vadim@grinco.eu>
  • Loading branch information
grinco committed Jan 29, 2023
1 parent 700110e commit ed5d747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/jq300/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def _extract_sensors_data(self, device_id, ts_now: int, sensors: dict):
res = {}
for sensor in sensors:
sensor_id = sensor["seq"]
if sensor["content"] is None or (
if sensor["content"] is None or sensor["content"] == "" or (
sensor_id not in SENSORS and sensor_id not in BINARY_SENSORS
):
continue
Expand Down

0 comments on commit ed5d747

Please sign in to comment.