Skip to content

Commit

Permalink
Fix MqttCameraDiscoveryConfig UniqueId
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasMH committed Aug 27, 2023
1 parent 1b1ab44 commit be99584
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ToMqttNet/DeviceTypes/MqttCameraDiscoveryConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,5 @@ public class MqttCameraDiscoveryConfig : MqttDiscoveryConfig
///</summary>
[JsonProperty("topic")]
public string Topic { get; set; }

Check warning on line 49 in src/ToMqttNet/DeviceTypes/MqttCameraDiscoveryConfig.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Non-nullable property 'Topic' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

///<summary>
/// An ID that uniquely identifies this camera. If two cameras have the same unique ID Home Assistant will raise an exception.
///</summary>
[JsonProperty("unique_id")]
public string? UniqueId { get; set; }
}
}

0 comments on commit be99584

Please sign in to comment.