forked from home-assistant/core
* Clean up target_duration method * Consolidate Part creation in one place * Use BytesIO.read instead of memoryview access * Change flush() signature
* Clean up target_duration method * Consolidate Part creation in one place * Use BytesIO.read instead of memoryview access * Change flush() signature