hotspots: Add 'type' field to objects in 'hotspots' array.

This commit adds a 'type' field to the objects
in 'hotspots' array sent in 'hotspots' events.

We have explicitly added this field as we eventually
plan to have two type of onboarding steps, 'hotspots'
and 'one_time_notice'.

This will help clients to easily identify them.
This commit is contained in:
Prakhar Pratyush
2023-12-05 17:17:03 +05:30
committed by Tim Abbott
parent ac8af3d6de
commit df379b5e86
3 changed files with 11 additions and 3 deletions

View File

@@ -334,6 +334,7 @@ def check_heartbeat(
_hotspot = DictType(
required_keys=[
("type", str),
("name", str),
("title", str),
("description", str),