Remove turn_on and turn_off feature for clients (#18234)
Remove turn_on and turn_off feature for clients (#18234)

* Enhancements for DirecTV media player

Following enhancements have been made:

1. Added debug logging
2. Added ability to change channel using select_source service of the remote platform.
3. State will now show paused if a recorded program is paused, for live TV playing will always be returned.
4. Added the following attributes:
    a. media_position: current position of the media (in seconds)
    b. media_position_updated_at: timestamp when media_position was updated.
   c. source: current source (channel).
   d. media_isbeingrecorded: if current media is being recorded or not.
   e. media_rating: TV/Movie rating of the media
   f. media_recorded: if current media is recorded or live TV
   g. media_starttime: Timestamp media was aired

Reordered properties to follow same order as how they are in __init__.py of remote platform.

* Fixed error and cleaned up few items

Fixed an issue when determining if a program is recorded or not.
Cleaned up some coding.

* Added available property

Added available property

* Disable feature TURN_ON and TURN_OFF for DVR clients

Disable the feature turn_on and turn_off for DVR clients.

* self._is_client and raise NotImplementedError

Updated setting self._is_client
Raise NotImplementedError if turn_on or turn_off is called for clients.

PetePriority/home-assistant,mKeRix/home-assistant,PetePriority/home-assistant,nkgilley/home-assistant,DavidLP/home-assistant,jamespcole/home-assistant,joopert/home-assistant,jawilson/home-assistant,tboyce021/home-assistant,balloob/home-assistant,jnewland/home-assistant,Danielhiversen/home-assistant,MartinHjelmare/home-assistant,jnewland/home-assistant,jawilson/home-assistant,mezz64/home-assistant,postlund/home-assistant,postlund/home-assistant,Cinntax/home-assistant,titilambert/home-assistant,soldag/home-assistant,nugget/home-assistant,titilambert/home-assistant,Cinntax/home-assistant,tboyce1/home-assistant,joopert/home-assistant,jabesq/home-assistant,home-assistant/home-assistant,FreekingDean/home-assistant,partofthething/home-assistant,jabesq/home-assistant,HydrelioxGitHub/home-assistant,partofthething/home-assistant,turbokongen/home-assistant,GenericStudent/home-assistant,tinloaf/home-assistant,aronsky/home-assistant,DavidLP/home-assistant,sander76/home-assistant,sdague/home-assistant,leppa/home-assistant,aequitas/home-assistant,aequitas/home-assistant,leppa/home-assistant,GenericStudent/home-assistant,DavidLP/home-assistant,molobrakos/home-assistant,tchellomello/home-assistant,Teagan42/home-assistant,rohitranjan1991/home-assistant,rohitranjan1991/home-assistant,w1ll1am23/home-assistant,tboyce1/home-assistant,Danielhiversen/home-assistant,pschmitt/home-assistant,nugget/home-assistant,fbradyirl/home-assistant,FreekingDean/home-assistant,lukas-hetzenecker/home-assistant,qedi-r/home-assistant,MartinHjelmare/home-assistant,rohitranjan1991/home-assistant,HydrelioxGitHub/home-assistant,tboyce1/home-assistant,kennedyshead/home-assistant,robbiet480/home-assistant,tinloaf/home-assistant,HydrelioxGitHub/home-assistant,toddeye/home-assistant,balloob/home-assistant,molobrakos/home-assistant,mKeRix/home-assistant,fbradyirl/home-assistant,turbokongen/home-assistant,tinloaf/home-assistant,aequitas/home-assistant,Teagan42/home-assistant,robbiet480/home-assistant,nkgilley/home-assistant,nugget/home-assistant,PetePriority/home-assistant,toddeye/home-assistant,mKeRix/home-assistant,home-assistant/home-assistant,tboyce021/home-assistant,fbradyirl/home-assistant,adrienbrault/home-assistant,sdague/home-assistant,auduny/home-assistant,MartinHjelmare/home-assistant,tchellomello/home-assistant,aronsky/home-assistant,jabesq/home-assistant,auduny/home-assistant,soldag/home-assistant,auduny/home-assistant,jnewland/home-assistant,pschmitt/home-assistant,sander76/home-assistant,jamespcole/home-assistant,adrienbrault/home-assistant,lukas-hetzenecker/home-assistant,molobrakos/home-assistant,mezz64/home-assistant,kennedyshead/home-assistant,qedi-r/home-assistant,balloob/home-assistant,w1ll1am23/home-assistant,jamespcole/home-assistant,tboyce1/home-assistant,mKeRix/home-assistant