Skip to content

Commit

Permalink
Merge pull request #21 from emics/dev
Browse files Browse the repository at this point in the history
Add Confidence sensor in Ionosonde Integration
  • Loading branch information
emics authored Jun 15, 2023
2 parents 3b2cad9 + 3147b17 commit d105dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/ham_radio_propagation/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
NAME = "HAM Radio Propagation"
MANUFACTURER = "hamqsl.com and kc2g.com"
MODEL = "HAM Radio Propagation"
VERSION = "1.1.5"
VERSION = "1.1.6"
CONFIGURATION_URL = "https://github.com/emics/ham_radio_propagation#readme"

TYPE_ONLY_SOLAR = "Configure solar data"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ham_radio_propagation/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/emics/ham_radio_propagation/issues",
"requirements": ["xmltodict==0.13.0"],
"version": "1.1.5"
"version": "1.1.6"
}
7 changes: 7 additions & 0 deletions custom_components/ham_radio_propagation/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ async def async_setup_entry(
icon="mdi:format-wrap-inline",
native_unit_of_measurement="MHz",
),
SensorEntityDescription(
key="solar_hf_cs_" + station_code,
name="Solar HF Confidence",
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:percent-box-outline",
),
)
if entry.data[CHOICE] == TYPE_ONLY_MUF:
sensor_types_out = sensor_type_muf
Expand Down Expand Up @@ -226,6 +232,7 @@ async def async_data_update_kc2g(self):
self.data["solar_hf_muf_" + station_code] = entry["mufd"]
self.data["solar_hf_fof2_" + station_code] = entry["fof2"]
self.data["solar_hf_foe_" + station_code] = entry["foe"]
self.data["solar_hf_cs_" + station_code] = entry["cs"]
if entry["olddata"] == "1":
call_data = {
"title": "Ham Radio Propagation",
Expand Down

0 comments on commit d105dde

Please sign in to comment.