diff --git a/CHANGELOG.md b/CHANGELOG.md index 35380e6d0f..6267cd0360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ * Fix `flet build apk` failing at `mergeDebugNativeLibs` with `N files found with path 'lib//libc++_shared.so'` when an app combines `serious_python_android` with another Flutter plugin that also bundles the NDK C++ runtime ([#6570](https://github.com/flet-dev/flet/issues/6570), [#6571](https://github.com/flet-dev/flet/pull/6571)) by @ndonkoHenri. * Specify `handler` signatures in `subscribe` and `subscribe_topic` methods of `PubSubClient` for better type checking ([#6549](https://github.com/flet-dev/flet/pull/6564)) by @Iaw4tch * Fix `FilePicker.pick_files()` on web for slow network shares or slow machines: pass `cancel_upload_on_window_blur=False` to prevent valid file selections from being reported as cancelled when the browser window loses focus during file picking ([#771](https://github.com/flet-dev/flet/issues/771), [#6573](https://github.com/flet-dev/flet/pull/6573)) by @ndonkoHenri. +* Support `PagePlatform.ANDROID_TV` in `Page.get_device_info()` retrieval ([#6604](https://github.com/flet-dev/flet/pull/6604)) by @bl1nch. ### Documentation diff --git a/sdk/python/packages/flet/src/flet/controls/page.py b/sdk/python/packages/flet/src/flet/controls/page.py index 977ec72f04..fb97c00fc9 100644 --- a/sdk/python/packages/flet/src/flet/controls/page.py +++ b/sdk/python/packages/flet/src/flet/controls/page.py @@ -1386,7 +1386,7 @@ async def get_device_info(self) -> Optional[DeviceInfo]: if self.web: return from_dict(WebDeviceInfo, info) - elif self.platform == PagePlatform.ANDROID: + elif self.platform in [PagePlatform.ANDROID, PagePlatform.ANDROID_TV]: return from_dict(AndroidDeviceInfo, info) elif self.platform == PagePlatform.IOS: return from_dict(IosDeviceInfo, info)