diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e2afb27..6fd94532 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [0.3.36] - 2023-01-31 +### Fix +- Fixed message handling from request module. + ## [0.3.35] - 2023-01-31 ### Fix - Fixed access to injection_dict for the first time that emhass is used. diff --git a/docs/conf.py b/docs/conf.py index 76241ab9..6ec0ad25 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ author = 'David HERNANDEZ' # The full version, including alpha/beta/rc tags -release = '0.3.35' +release = '0.3.36' # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index ab6da537..a80b6885 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( name='emhass', # Required - version='0.3.35', # Required + version='0.3.36', # Required description='An Energy Management System for Home Assistant', # Optional long_description=long_description, # Optional long_description_content_type='text/markdown', # Optional (see note above) diff --git a/src/emhass/retrieve_hass.py b/src/emhass/retrieve_hass.py index 563fbe9c..73547032 100644 --- a/src/emhass/retrieve_hass.py +++ b/src/emhass/retrieve_hass.py @@ -293,10 +293,11 @@ def post_data(self, data_df: pd.DataFrame, idx: int, entity_id: str, if self.get_data_from_file: class response: pass response.status_code = 200 + response.ok = True else: response = post(url, headers=headers, data=json.dumps(data)) # Treating the response status and posting them on the logger - if response.status_code == 200: + if response.ok: self.logger.info("Successfully posted to "+entity_id+" = "+str(state)) else: self.logger.info("The status code for received curl command response is: "+str(response.status_code))