My Tuya device doesn't work with ZHA - Or how to build a Tuya Quirk

I just got a Tuya thermometer and it needs a new quirk according to this post by someone who bought the same one (sorry. learned my lesson, I’ll do more research next time).

I’ve done some programming so I thought I can do this! But I’m not a Python programmer so I don’t understand why that import line if you never us t in the script?!

Also, for finding the Tuya DP’s is there a way to do that without setting up a Z2M or Tuya environment? I only have HA with ZHA!

Thanks