Add warnings

This commit is contained in:
Melissa LeBlanc-Williams 2025-06-11 13:28:08 -07:00
parent 273cd52821
commit 6c4c3a9f6d
2 changed files with 8 additions and 0 deletions

View file

@ -557,6 +557,10 @@ class PortalBase:
@property
def splash(self):
"""The root display group for this device (for backwards compatibility)."""
print(
"WARNING: splash is deprecated, use root_group instead. "
"This will be removed in a future release."
)
return self.graphics.root_group
@property

View file

@ -168,4 +168,8 @@ class GraphicsBase:
@property
def splash(self):
"""The display's root group (for backwards compatibility)."""
print(
"WARNING: splash is deprecated, use root_group instead. "
"This will be removed in a future release."
)
return self.display._root_group