diff --git a/custom_components/ham_radio_propagation/const.py b/custom_components/ham_radio_propagation/const.py index c44cff1..9878899 100644 --- a/custom_components/ham_radio_propagation/const.py +++ b/custom_components/ham_radio_propagation/const.py @@ -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" diff --git a/custom_components/ham_radio_propagation/manifest.json b/custom_components/ham_radio_propagation/manifest.json index 96fc68c..0a1cff0 100644 --- a/custom_components/ham_radio_propagation/manifest.json +++ b/custom_components/ham_radio_propagation/manifest.json @@ -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" } diff --git a/custom_components/ham_radio_propagation/sensor.py b/custom_components/ham_radio_propagation/sensor.py index 5f88bf8..5e94bf9 100644 --- a/custom_components/ham_radio_propagation/sensor.py +++ b/custom_components/ham_radio_propagation/sensor.py @@ -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 @@ -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",