How to get temp and hum on an oled Home Assistant?

Well, maybe you forgot that esphome is very well documented and even features a getting started guide?

Please don’t forget to read the docs!

Also how to ask a good question is something you probably also completely forgot (to read)

Just give it all a try! Often you are quicker in resolving your errors then posting in 5 forums and getting 20 opinions on your code!