Code Monkey home page Code Monkey logo

Comments (3)

maximilian-franz avatar maximilian-franz commented on May 27, 2024 1

I think this could have something to do with the split_at attribute of the ICS-class. The default value of this attribute is None, however here


the class is instantiated with the split_at attribute being "None" instead (notice the quotation marks).
This leads to the following if-statement
if self._split_at is not None:
summary = re.split(self._split_at, summary)
for t in summary:
entries.append((dtstart, t.strip().capitalize()))
else:
entries.append((dtstart, summary))
not evaluating correctly anymore.

After removing the quotation marks everything worked fine again on my local ha instance.

from hacs_waste_collection_schedule.

mampfes avatar mampfes commented on May 27, 2024 1

Thanks for the information. Release 1.9.1 should fix the issue.

from hacs_waste_collection_schedule.

maxxam4 avatar maxxam4 commented on May 27, 2024

Same problem here.

waste_collection_schedule:
  sources:
    - name: ics
      args:
        file: "/home/homeassistant/.homeassistant/www/Abfuhrtermine.ics"
        offset: 0
       customize:
        - type: Restabfall 40 l bis 240 l
          alias: Restmüll
          icon: mdi:trash-can-outline
        - type: Papiertonne 240 l
          alias: Papiertonne
          icon: mdi:newspaper-variant-multiple-outline
        - type: Gelber Sack
          alias: Gelber Sack
          icon: mdi:recycle
        - type: Papiertonne; Restmüll
          alias: Papiertonne, Restmüll
          icon: mdi:truck-outline
      calendar_title: Müllabfuhr
  - platform: waste_collection_schedule
    name: waste_collection_plastic
    details_format: upcoming
    value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
    types:
      - Gelber Sack

if i change

    types:
      - Gelber Sack

to

    types:
      - Gelber sack

it works.

Link to ics
https://apm.wastebox.gemos-management.de/Gemos/WasteBox/Frontend/TourSchedule/Raw/Name/2021/year/149142/1372,1374,1376/Print/ics/Default/Abfuhrtermine.ics

Sensor attributes:

attribute

thanks

from hacs_waste_collection_schedule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.