home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.65k stars 30.79k forks source link

Sensor update Failed - Vulcan #93080

Closed casper255 closed 1 year ago

casper255 commented 1 year ago

The problem

Sensor update failed

What version of Home Assistant Core has the issue?

2023.5.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Vulcan

Link to integration documentation on our website

https://www.home-assistant.io/integrations/vulcan/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.entity
Source: helpers/aiohttp_client.py:67
First occurred: 14 maja 2023 18:20:48 (664 occurrences)
Last logged: 07:57:58

Update for sensor.latest_attendance fails
Update for sensor.szczesliwy_numer fails
Update for calendar.vulcan_calendar_julia_kokot fails
Update for sensor.next_homework fails
Update for sensor.latest_message fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in async_device_update
    await coro
  File "/config/custom_components/vulcan/calendar.py", line 131, in async_update
    events = await get_lessons(self.client, type_="list")
  File "/config/custom_components/vulcan/fetch_data.py", line 13, in get_lessons
    async for lesson in await client.data.get_changed_lessons(
  File "/usr/local/lib/python3.10/site-packages/vulcan/data/_lesson.py", line 158, in get
    data = await api.helper.get_list(
  File "/usr/local/lib/python3.10/site-packages/vulcan/_api_helper.py", line 96, in get_list
    return await self._api.get(url, query, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/vulcan/_api.py", line 162, in get
    return await self._request("GET", url, body=None, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/vulcan/_api.py", line 126, in _request
    response = await r.json()
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 67, in json
    return await super().json(*args, loads=loads, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1104, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://lekcjaplus.vulcan.net.pl/dabrowagornicza/006320/api/mobile/schedule/changes/byPupil?unitId=13&pupilId=36042&periodId=15027&dateFrom=2023-05-14&dateTo=2023-05-14&lastId=-2147483000&pageSize=500&lastSyncDate=1970-01-01%2000%3A01%3A00')

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @antoni-czaplicki, mind taking a look at this issue as it has been labeled with an integration (vulcan) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `vulcan` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign vulcan` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


vulcan documentation vulcan source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.