It appears that you created this manually and not by using the Automation Editor. If you did use the Automation Editor to create it, you must have edited it because, like tom_l said, this is a Numeric Device Condition and is missing its device option.
Rule of thumb:
Don’t create Device Triggers, Device Conditions, or Device Actions manually. They’re meant to be created using the Automation Editor and then the resulting YAML should be left untouched (i.e. don’t attempt to modify their YAML afterwards).
By “commenting out” those specific lines, you effectively converted the Device Condition into a Numeric State Condition (which is what tom_l suggested). You may as well delete those “commented out” lines because they serve no purpose here.
You’re welcome but can you confirm the malformed Device Condition was not produced by the Automation Editor but is a result of manual intervention? I just want to confirm it’s not due to a software bug.