mqtt-homeassistant 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96765202ae955e74f283eb348c22fed1c8bd4cd792aa9792ef071cc5f4bf68c3
4
- data.tar.gz: bfd420db58ba339dd034c177b5352b9dee84063cd2800f7db21fbe5a125ee8ea
3
+ metadata.gz: c9ce071c9aff4a9278fd43c312610aef5a9ef11e99452823067dbf4cf6980029
4
+ data.tar.gz: 47b50acb51c8280f29f80f0c4f918b744ca291b5484af0119d2a4cbed80cf86f
5
5
  SHA512:
6
- metadata.gz: bb2f2bd2d70e208ad42a9420723088d16c33cb4607104f7b3edcaaf26a0c7a04211bd2ba04d9c31e26df84cdbd71b726ad1b995b2d34afb580648b6ee540d0fd
7
- data.tar.gz: c1ee571c04ddeea59975ea544dddd1690607ae58fd4bd7c7e825879b8357bcaf405389cdb9c7154e6ce91a4f2a1562742676d5aba5d36acd21bcbbd74f7f5f17
6
+ metadata.gz: a7521c34bad575547c953530311c9111d4d143579139738a158311595b3996b300d22a5ded21d815712bb7bc50916c6b356ad66c3246fcd82d05fdc02ef26ca1
7
+ data.tar.gz: c50827bcc8264b573d2f0543f5fb3ef6a94d1b3d04146379251a53681816756e8a731377f98b3f2d8df2f2d42e93cc89ddfa713fd91ca9521711a4c95af69664
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MQTT
4
4
  module HomeAssistant
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
@@ -15,6 +15,7 @@ module MQTT
15
15
  binary_sensor: %i[
16
16
  battery
17
17
  battery_charging
18
+ carbon_monoxide
18
19
  cold
19
20
  connectivity
20
21
  door
@@ -46,33 +47,56 @@ module MQTT
46
47
  dehumidifier
47
48
  ].freeze,
48
49
  sensor: %i[
50
+ apparent_power
49
51
  aqi
52
+ atmospheric_pressure
50
53
  battery
51
54
  carbon_dioxide
52
55
  carbon_monoxide
53
56
  current
57
+ data_rate
58
+ data_size
54
59
  date
60
+ distance
61
+ duration
55
62
  energy
63
+ energy_storage
64
+ enum
65
+ frequency
56
66
  gas
57
67
  humidity
58
68
  illuminance
69
+ irradiance
70
+ moisture
59
71
  monetary
60
72
  nitrogen_dioxide
61
73
  nitrogen_monoxide
62
74
  nitrous_oxide
63
75
  ozone
76
+ ph
64
77
  pm1
65
78
  pm10
66
79
  pm25
67
80
  power_factor
68
81
  power
82
+ precipitation
83
+ precipitation_intensity
69
84
  pressure
85
+ reactive_power
70
86
  signal_strength
87
+ sound_pressure
88
+ speed
71
89
  sulphur_dioxide
72
90
  temperature
73
91
  timestamp
74
92
  volatile_organic_compounds
93
+ volatile_organic_compounds_parts
75
94
  voltage
95
+ volume
96
+ volume_storage
97
+ water
98
+ weight
99
+ wind_speed
76
100
  ].freeze
77
101
  }.freeze
78
102
  STATE_CLASSES = %i[measurement total total_increasing].freeze
@@ -427,6 +451,7 @@ module MQTT
427
451
  entity_category: nil,
428
452
  icon: nil
429
453
  )
454
+ device_class ||= :enum if property.datatype == :enum
430
455
  if device_class && !DEVICE_CLASSES[:sensor].include?(device_class)
431
456
  raise ArgumentError, "Unrecognized device_class #{device_class.inspect}"
432
457
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mqtt-homeassistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-12 00:00:00.000000000 Z
11
+ date: 2023-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: homie-mqtt
@@ -67,33 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: rubocop-inst
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.23'
75
+ version: '1.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.23'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-performance
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.12'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.12'
82
+ version: '1.0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rubocop-rake
99
85
  requirement: !ruby/object:Gem::Requirement