dji_mqtt_connect 0.1.29 → 0.1.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cebd5b9e107d2f9d526b5a411c35396fc0b6650f60d25b1b301d7be3b390481e
4
- data.tar.gz: eb697553d9dcd4406d578878e141270e1680c990cd12e9c8ec2ad18823fad1b1
3
+ metadata.gz: bbbbf8d76b4b59cfa044b9bc78b1f15d29da687eb415ff3ace8b5b5eea8c65fc
4
+ data.tar.gz: 249408710024a2b88f9b43550c62051b712d18ff2e9c90ce14e2ba049a05a180
5
5
  SHA512:
6
- metadata.gz: 3a17281e32ffeba74922f23f096edb6b3bfba5ea021e065c0fa58349e3cddd9716d511adcb1bae39e7f749c9d2a590483a16da1458aa398c785a853efe11fce7
7
- data.tar.gz: 79fc9abe8a4ff38048d349ec176d777a7524f751065f3c1a3db102f310b241e0538d04b05f0d63fe40e053f8eb537b9c5d658d2a2252151c0a6d3ce25abd6068
6
+ metadata.gz: e7459b05b6ab7bdf2940280bf5b9512e5dc71c371ddca6c738d8e857fcc78d9f017758b298dbb2514e0f9e5d76bc811406660e71fc19d1084936334c7d715e8e
7
+ data.tar.gz: b590ee8f812a960bd32f4dc66307cc992014236da45647bb2d9189fe751e742ab07f45bbdc26b93eb2054b37fc28eb1e4b47816817eb0a4e4c6b57d65a18b330
@@ -3,6 +3,8 @@
3
3
  module DjiMqttConnect
4
4
  module Thing::Product
5
5
  class FlightAreasSyncProgressEventsMessage < EventsMessage
6
+ Reason = Types::Integer.enum(0, 1, 2, 3, 4, 5)
7
+
6
8
  attribute :_method, Types::String.enum("flight_areas_sync_progress")
7
9
 
8
10
  attribute :data do
@@ -20,10 +22,18 @@ module DjiMqttConnect
20
22
  )
21
23
 
22
24
  # {"1":"Failed to parse file information returned from the cloud.","2":"Failed to retrieve file information from the aircraft's end.","3":"Failed to download the file from the cloud.","4":"Link flipping failed.","5":"File transmission failed."}
23
- attribute :reason, Types::Integer.enum(0, 1, 2, 3, 4, 5)
25
+ attribute :reason, Reason | Types::Integer
26
+
27
+ def reason?
28
+ reason && Reason.valid?(reason)
29
+ end
24
30
 
25
31
  def humanized_reason
26
- I18n.t(reason, scope: "dji_mqtt_connect.thing_product_flight_areas_sync_progress_events_message.humanized_reason")
32
+ if reason?
33
+ I18n.t(reason, scope: "dji_mqtt_connect.thing_product_flight_areas_sync_progress_events_message.humanized_reason")
34
+ else
35
+ reason.to_s
36
+ end
27
37
  end
28
38
  end
29
39
 
@@ -238,6 +238,7 @@ module DjiMqttConnect
238
238
  include Mixins::SupplementLightState
239
239
 
240
240
  attribute? :temperature, Types::Temperature
241
+ include Mixins::Temperature
241
242
 
242
243
  attribute? :tilt_angle do
243
244
  attribute :valid, Types::Integer
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.29"
4
+ VERSION = "0.1.29.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji_mqtt_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-18 00:00:00.000000000 Z
11
+ date: 2025-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport