fix: sanitize entity keys when building entity IDs
Entity keys containing dots (e.g. fishtank.waterpumppausetime) produced
invalid entity IDs, which HA will reject starting from 2027.2. Reuse
safe_key() to replace dots/spaces with underscores in the object ID.
Full Changelog: v26.8.1...v26.8.2