smart_meter_texas/__init__.py
def _agent_headers(self):
        """Build the user agent header."""
        if not self.user_agent:
            self.user_agent = USER_AGENT_TEMPLATE.format(
                BUILD=randrange(1001, 9999), REV=randrange(12, 999)
            )

        return {"User-Agent": self.user_agent}
Build the user agent header.
Build the user agent header.
Build the user agent header .
def _agent_headers(self):
        if not self.user_agent:
            self.user_agent = USER_AGENT_TEMPLATE.format(
                BUILD=randrange(1001, 9999), REV=randrange(12, 999)
            )
        return {"User-Agent": self.user_agent}
def _agent_headers ( self ) : if not self . user_agent : self . user_agent = USER_AGENT_TEMPLATE . format ( BUILD = randrange ( 1001 , 9999 ) , REV = randrange ( 12 , 999 ) ) return { "User-Agent" : self . user_agent }
Build the user agent header.
Build the user agent header .
"""Build the user agent header."""
self