Skip to content

Commit

Permalink
merge: create release 0.6.4 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlojakab authored Oct 29, 2024
2 parents 34c99b3 + 79cb022 commit e8ff078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions custom_components/dijnet/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ async def update_registered_issuers(self):

invoice_providers_response = await session.get_registered_providers_page()

invoice_providers_response_pquery = pq(invoice_providers_response)
invoice_providers_response_pquery = pq(invoice_providers_response.decode("iso-8859-2").encode('utf-8'))
for row in invoice_providers_response_pquery.find(".table > tbody > tr").items():
issuer_name = row.children("td:nth-child(1)").text()
issuer_id = row.children("td:nth-child(2)").text()
Expand Down Expand Up @@ -454,13 +454,13 @@ async def update_invoices(self):
await session.get_main_page()

search_page = await session.get_invoice_search_page()
search_page_pyquery = pq(search_page)
search_page_pyquery = pq(search_page.decode("iso-8859-2").encode('utf-8'))

vfw_token = next(search_page_pyquery.find('form[action=szamla_search_submit] input[name=vfw_token]').items()).val()

search_result = await session.post_search_invoice('', '', vfw_token, from_date, to_date)

invoices_pyquery = pq(search_result)
invoices_pyquery = pq(search_result.decode("iso-8859-2").encode('utf-8'))
possible_new_paid_invoices: List[PaidInvoice] = []
possible_new_unpaid_invoices: List[Invoice] = []
index = 0
Expand All @@ -474,7 +474,7 @@ async def update_invoices(self):
elif self._is_invoice_paid(row):
await session.get_invoice_page(index)
invoice_history_page = await session.get_invoice_history_page()
invoice_history_page_response_pyquery = pq(invoice_history_page)
invoice_history_page_response_pyquery = pq(invoice_history_page.decode("iso-8859-2").encode('utf-8'))
for history_row in invoice_history_page_response_pyquery.find('.table tr').items():
if history_row.children('td:nth-child(4)').text() == '**Sikeres fizetés**':
paid_at = datetime.strptime(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/dijnet/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"issue_tracker": "https://github.com/laszlojakab/homeassistant-dijnet/issues",
"dependencies": [],
"config_flow": true,
"version": "0.6.3",
"version": "0.6.4",
"codeowners": ["@laszlojakab"],
"requirements": ["PyQuery==1.4.3"]
}

0 comments on commit e8ff078

Please sign in to comment.