rf_device.py
async def handle_log_units(cls, call):
        """Service that logs all paired units."""
        units = await cls.becker.list_units()

        # Apparently the SQLite results are implicitly returned in unit id
        # order. This seems pretty dirty to rely on.
        unit_id = 1
        _LOGGER.info("Configured Becker centronic units:")
        for row in units:
            unit_code, increment = row[0:2]
            _LOGGER.info(
                "Unit id %d, unit code %s, increment %d", unit_id, unit_code, increment
            )
            unit_id += 1
Service that logs all paired units.
Service that logs all paired units.
Service that logs all paired units .
async def handle_log_units(cls, call):
        units = await cls.becker.list_units()
        unit_id = 1
        _LOGGER.info("Configured Becker centronic units:")
        for row in units:
            unit_code, increment = row[0:2]
            _LOGGER.info(
                "Unit id %d, unit code %s, increment %d", unit_id, unit_code, increment
            )
            unit_id += 1
async def handle_log_units ( cls , call ) : units = await cls . becker . list_units ( ) unit_id = 1 _LOGGER . info ( "Configured Becker centronic units:" ) for row in units : unit_code , increment = row [ 0 : 2 ] _LOGGER . info ( "Unit id %d, unit code %s, increment %d" , unit_id , unit_code , increment ) unit_id += 1
Service that logs all paired units.
Service that logs all paired units .
"""Service that logs all paired units.""" # Apparently the SQLite results are implicitly returned in unit id # order. This seems pretty dirty to rely on.
cls
call