custom_components/best_bottrop_garbage_collection/sensor.py
async def ignore(self, days: int):
        """Handle the ignore call. This will ignore this entity for the defined days"""
        _LOGGER.debug("Called handle_ignore for %s", self._attr_unique_id)

        ignore_until: date = None

        _LOGGER.debug("got days %s", str(days))

        if days == 0:
            _LOGGER.debug("Days is zero. Resetting")
            ignore_until = None
        else:
            ignore_until = date.today() + timedelta(days=days)

        _LOGGER.debug("Ignoring until %s", ignore_until)
        self._ignore = ignore_until
        await self.async_update_ha_state(True)
Handle the ignore call. This will ignore this entity for the defined days
Handle the ignore call. This will ignore this entity for the defined days
Handle the ignore call . This will ignore this entity for the defined days
async def ignore(self, days: int):
        _LOGGER.debug("Called handle_ignore for %s", self._attr_unique_id)
        ignore_until: date = None
        _LOGGER.debug("got days %s", str(days))
        if days == 0:
            _LOGGER.debug("Days is zero. Resetting")
            ignore_until = None
        else:
            ignore_until = date.today() + timedelta(days=days)
        _LOGGER.debug("Ignoring until %s", ignore_until)
        self._ignore = ignore_until
        await self.async_update_ha_state(True)
async def ignore ( self , days : int ) : _LOGGER . debug ( "Called handle_ignore for %s" , self . _attr_unique_id ) ignore_until : date = None _LOGGER . debug ( "got days %s" , str ( days ) ) if days == 0 : _LOGGER . debug ( "Days is zero. Resetting" ) ignore_until = None else : ignore_until = date . today ( ) + timedelta ( days = days ) _LOGGER . debug ( "Ignoring until %s" , ignore_until ) self . _ignore = ignore_until await self . async_update_ha_state ( True )
Handle the ignore call.
Handle the ignore call .
"""Handle the ignore call. This will ignore this entity for the defined days"""
self
days
int