Add flood warning/alarm level sensors Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
binary_sensor
* Add binary_sensor platform * Add tests * Remove state attributes * Remove attrs from strings.json * Use base entity class --------- Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
* Add sensor platform * Add tests * Fix icons.json * Use entry.runtime_data * Remove validate_input function * Change abort reason to cannot_connect * Remove unnecessary square brackets * Move _attr_attribution outside the constructor * Use native_value property * Use is with ENUMs * Import SOURCE_USER * Change test name * Use freezer.tick * Tests refactoring * Remove test_setup_entry * Test creating entry after error * Add missing async_block_till_done * Fix translation key * Remove coordinator type annotation * Enable strict typing * Assert config entry unique_id --------- Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>