A Pi is fine, but don't rely on the SD card for storage. Home Assistant is very write-heavy (since it logs state changes, etc), and will kill an SD card pretty quickly. You're better off using the SD card as a read-only boot device and then use an external drive for the actual system.