forked from home-assistant/core
* Limit precision when stringifying float states * Add test * Fix typing * Move StateType * Update * Move conversion to entity helper * Address review comments * Tweak precision * Tweak * Make _stringify_state an instance method