Enforce SourceType and add shorthand attributes and EntityDescription to device_tracker
The source_type property of device_tracker entities is now always expected to be a SourceType enum value. Standard strings are no longer valid.
TrackerEntity and ScannerEntity now have a dedicated ScannerEntityDescription and TrackerEntityDescription, which need to be used as base class when associating an EntityDescription to the Entity.
The source_type for these entities now also defaults to SourceType.GPS and SourceType.ROUTER, and it may be possible to drop the overriding property.
The following shorthand attributes have also been added:
BaseTrackerEntity._attr_source_typeTrackerEntity._attr_latitudeTrackerEntity._attr_location_accuracyTrackerEntity._attr_location_nameTrackerEntity._attr_longitudeTrackerEntity._attr_source_type(defaults toSourceType.GPS)ScannerEntity._attr_hostnameScannerEntity._attr_ip_addressScannerEntity._attr_mac_addressScannerEntity._attr_source_type(defaults toSourceType.ROUTER)
More details can be found in the device-tracker documentation.